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 // The LocationBar class is a virtual interface, defining access to the | 5 // The LocationBar class is a virtual interface, defining access to the |
6 // window's location bar component. This class exists so that cross-platform | 6 // window's location bar component. This class exists so that cross-platform |
7 // components like the browser command system can talk to the platform | 7 // components like the browser command system can talk to the platform |
8 // specific implementations of the location bar control. It also allows the | 8 // specific implementations of the location bar control. It also allows the |
9 // location bar to be mocked for testing. | 9 // location bar to be mocked for testing. |
10 | 10 |
11 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ | 11 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ |
12 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ | 12 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/string16.h" | 16 #include "base/string16.h" |
17 #include "chrome/common/instant_types.h" | 17 #include "chrome/common/instant_types.h" |
18 #include "content/public/common/page_transition_types.h" | 18 #include "content/public/common/page_transition_types.h" |
19 #include "webkit/glue/window_open_disposition.h" | 19 #include "ui/base/window_open_disposition.h" |
20 | 20 |
21 class ExtensionAction; | 21 class ExtensionAction; |
22 class LocationBarTesting; | 22 class LocationBarTesting; |
23 class OmniboxView; | 23 class OmniboxView; |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 class WebContents; | 26 class WebContents; |
27 } | 27 } |
28 | 28 |
29 class LocationBar { | 29 class LocationBar { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual void TestActionBoxMenuItemSelected(int command_id) = 0; | 112 virtual void TestActionBoxMenuItemSelected(int command_id) = 0; |
113 | 113 |
114 // Returns whether or not the bookmark star decoration is visible. | 114 // Returns whether or not the bookmark star decoration is visible. |
115 virtual bool GetBookmarkStarVisibility() = 0; | 115 virtual bool GetBookmarkStarVisibility() = 0; |
116 | 116 |
117 protected: | 117 protected: |
118 virtual ~LocationBarTesting() {} | 118 virtual ~LocationBarTesting() {} |
119 }; | 119 }; |
120 | 120 |
121 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ | 121 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ |
OLD | NEW |