OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // ToolbarActionViewDelegateViews: | 63 // ToolbarActionViewDelegateViews: |
64 void UpdateState() override; | 64 void UpdateState() override; |
65 views::View* GetAsView() override; | 65 views::View* GetAsView() override; |
66 bool IsShownInMenu() override; | 66 bool IsShownInMenu() override; |
67 views::FocusManager* GetFocusManagerForAccelerator() override; | 67 views::FocusManager* GetFocusManagerForAccelerator() override; |
68 views::Widget* GetParentForContextMenu() override; | 68 views::Widget* GetParentForContextMenu() override; |
69 ToolbarActionViewController* GetPreferredPopupViewController() override; | 69 ToolbarActionViewController* GetPreferredPopupViewController() override; |
70 views::View* GetReferenceViewForPopup() override; | 70 views::View* GetReferenceViewForPopup() override; |
71 views::MenuButton* GetContextMenuButton() override; | 71 views::MenuButton* GetContextMenuButton() override; |
72 content::WebContents* GetCurrentWebContents() const override; | 72 content::WebContents* GetCurrentWebContents() const override; |
73 void HideActivePopup() override; | |
74 | 73 |
75 // The controller for this ExtensionAction view. | 74 // The controller for this ExtensionAction view. |
76 scoped_ptr<ExtensionActionViewController> view_controller_; | 75 scoped_ptr<ExtensionActionViewController> view_controller_; |
77 | 76 |
78 // The location bar view that owns us. | 77 // The location bar view that owns us. |
79 LocationBarView* owner_; | 78 LocationBarView* owner_; |
80 | 79 |
81 // The string to show for a tooltip; | 80 // The string to show for a tooltip; |
82 std::string tooltip_; | 81 std::string tooltip_; |
83 | 82 |
84 // This is used for post-install visual feedback. The page_action icon is | 83 // This is used for post-install visual feedback. The page_action icon is |
85 // briefly shown even if it hasn't been enabled by its extension. | 84 // briefly shown even if it hasn't been enabled by its extension. |
86 bool preview_enabled_; | 85 bool preview_enabled_; |
87 | 86 |
88 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); | 87 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); |
89 }; | 88 }; |
90 | 89 |
91 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 90 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
OLD | NEW |