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

Side by Side Diff: chrome/browser/ui/views/location_bar/page_action_image_view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Full patch including mechanical changes Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 ExtensionAction* extension_action() { 44 ExtensionAction* extension_action() {
45 return view_controller_->extension_action(); 45 return view_controller_->extension_action();
46 } 46 }
47 ExtensionActionViewController* view_controller() { 47 ExtensionActionViewController* view_controller() {
48 return view_controller_.get(); 48 return view_controller_.get();
49 } 49 }
50 50
51 // Overridden from views::View: 51 // Overridden from views::View:
52 const char* GetClassName() const override; 52 const char* GetClassName() const override;
53 void GetAccessibleState(ui::AXViewState* state) override; 53 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
54 bool OnMousePressed(const ui::MouseEvent& event) override; 54 bool OnMousePressed(const ui::MouseEvent& event) override;
55 void OnMouseReleased(const ui::MouseEvent& event) override; 55 void OnMouseReleased(const ui::MouseEvent& event) override;
56 bool OnKeyPressed(const ui::KeyEvent& event) override; 56 bool OnKeyPressed(const ui::KeyEvent& event) override;
57 void OnGestureEvent(ui::GestureEvent* event) override; 57 void OnGestureEvent(ui::GestureEvent* event) override;
58 58
59 // Called to notify the PageAction that it should determine whether to be 59 // Called to notify the PageAction that it should determine whether to be
60 // visible or hidden. |contents| is the WebContents that is active. 60 // visible or hidden. |contents| is the WebContents that is active.
61 void UpdateVisibility(content::WebContents* contents); 61 void UpdateVisibility(content::WebContents* contents);
62 62
63 private: 63 private:
(...skipping 25 matching lines...) Expand all
89 // briefly shown even if it hasn't been enabled by its extension. 89 // briefly shown even if it hasn't been enabled by its extension.
90 bool preview_enabled_; 90 bool preview_enabled_;
91 91
92 // Responsible for running the menu. 92 // Responsible for running the menu.
93 std::unique_ptr<views::MenuRunner> menu_runner_; 93 std::unique_ptr<views::MenuRunner> menu_runner_;
94 94
95 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); 95 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView);
96 }; 96 };
97 97
98 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 98 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698