Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 2911553002: Fix automation API bounding boxes on high-dpi devices (Closed)
Patch Set: Add comment about mutating cache Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/common/extensions/api/automation.h" 10 #include "chrome/common/extensions/api/automation.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void OnMessageReceived(const IPC::Message& message); 52 void OnMessageReceived(const IPC::Message& message);
53 53
54 TreeCache* GetTreeCacheFromTreeID(int tree_id); 54 TreeCache* GetTreeCacheFromTreeID(int tree_id);
55 55
56 ui::AXNode* GetParent(ui::AXNode* node, TreeCache** in_out_cache); 56 ui::AXNode* GetParent(ui::AXNode* node, TreeCache** in_out_cache);
57 57
58 ScriptContext* context() const { 58 ScriptContext* context() const {
59 return ObjectBackedNativeHandler::context(); 59 return ObjectBackedNativeHandler::context();
60 } 60 }
61 61
62 float GetDeviceScaleFactor() const;
63
62 private: 64 private:
63 // ObjectBackedNativeHandler overrides: 65 // ObjectBackedNativeHandler overrides:
64 void Invalidate() override; 66 void Invalidate() override;
65 67
66 // Returns whether this extension has the "interact" permission set (either 68 // Returns whether this extension has the "interact" permission set (either
67 // explicitly or implicitly after manifest parsing). 69 // explicitly or implicitly after manifest parsing).
68 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args); 70 void IsInteractPermitted(const v8::FunctionCallbackInfo<v8::Value>& args);
69 71
70 // Returns an object with bindings that will be added to the 72 // Returns an object with bindings that will be added to the
71 // chrome.automation namespace. 73 // chrome.automation namespace.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 std::vector<int> text_changed_node_ids_; 187 std::vector<int> text_changed_node_ids_;
186 ExtensionBindingsSystem* bindings_system_; 188 ExtensionBindingsSystem* bindings_system_;
187 bool should_ignore_context_; 189 bool should_ignore_context_;
188 190
189 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); 191 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
190 }; 192 };
191 193
192 } // namespace extensions 194 } // namespace extensions
193 195
194 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ 196 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698