| OLD | NEW |
| 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_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 5 #ifndef CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/base/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
| 12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 class ExtensionAction; | 15 class ExtensionAction; |
| 16 class LocationBarTesting; | 16 class LocationBarTesting; |
| 17 class OmniboxView; | 17 class OmniboxView; |
| 18 class Profile; | 18 class Profile; |
| 19 class ContentSettingImageModel; |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 class WebContents; | 22 class WebContents; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace extensions { | 25 namespace extensions { |
| 25 class Extension; | 26 class Extension; |
| 26 } | 27 } |
| 27 | 28 |
| 28 // The LocationBar class is a virtual interface, defining access to the | 29 // The LocationBar class is a virtual interface, defining access to the |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 126 |
| 126 // Returns the visible ExtensionAction at |index|. | 127 // Returns the visible ExtensionAction at |index|. |
| 127 virtual ExtensionAction* GetVisiblePageAction(size_t index) = 0; | 128 virtual ExtensionAction* GetVisiblePageAction(size_t index) = 0; |
| 128 | 129 |
| 129 // Simulates a left mouse pressed on the visible page action at |index|. | 130 // Simulates a left mouse pressed on the visible page action at |index|. |
| 130 virtual void TestPageActionPressed(size_t index) = 0; | 131 virtual void TestPageActionPressed(size_t index) = 0; |
| 131 | 132 |
| 132 // Returns whether or not the bookmark star decoration is visible. | 133 // Returns whether or not the bookmark star decoration is visible. |
| 133 virtual bool GetBookmarkStarVisibility() = 0; | 134 virtual bool GetBookmarkStarVisibility() = 0; |
| 134 | 135 |
| 136 // Returns the number of ContentSettingImageModels. |
| 137 virtual int ContentSettingImageModelCount() = 0; |
| 138 |
| 139 // Returns the ContentSettingImageModel at |index|. |
| 140 virtual ContentSettingImageModel* |
| 141 GetContentSettingImageModel(size_t index) = 0; |
| 142 |
| 135 protected: | 143 protected: |
| 136 virtual ~LocationBarTesting() {} | 144 virtual ~LocationBarTesting() {} |
| 137 }; | 145 }; |
| 138 | 146 |
| 139 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 147 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| OLD | NEW |