| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class Extension; | 25 class Extension; |
| 26 } | 26 } |
| 27 | 27 |
| 28 // The LocationBar class is a virtual interface, defining access to the | 28 // The LocationBar class is a virtual interface, defining access to the |
| 29 // window's location bar component. This class exists so that cross-platform | 29 // window's location bar component. This class exists so that cross-platform |
| 30 // components like the browser command system can talk to the platform | 30 // components like the browser command system can talk to the platform |
| 31 // specific implementations of the location bar control. It also allows the | 31 // specific implementations of the location bar control. It also allows the |
| 32 // location bar to be mocked for testing. | 32 // location bar to be mocked for testing. |
| 33 class LocationBar { | 33 class LocationBar { |
| 34 public: | 34 public: |
| 35 // The parameters for the Security Chip Feature. | |
| 36 static const char kSecurityChipFeatureVisibilityParam[]; | |
| 37 static const char kSecurityChipFeatureAnimationParam[]; | |
| 38 | |
| 39 explicit LocationBar(Profile* profile); | 35 explicit LocationBar(Profile* profile); |
| 40 | 36 |
| 41 // Shows the first run bubble anchored to the location bar. | 37 // Shows the first run bubble anchored to the location bar. |
| 42 virtual void ShowFirstRunBubble() = 0; | 38 virtual void ShowFirstRunBubble() = 0; |
| 43 | 39 |
| 44 // The details necessary to open the user's desired omnibox match. | 40 // The details necessary to open the user's desired omnibox match. |
| 45 virtual GURL GetDestinationURL() const = 0; | 41 virtual GURL GetDestinationURL() const = 0; |
| 46 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0; | 42 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0; |
| 47 virtual ui::PageTransition GetPageTransition() const = 0; | 43 virtual ui::PageTransition GetPageTransition() const = 0; |
| 48 | 44 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual void TestPageActionPressed(size_t index) = 0; | 124 virtual void TestPageActionPressed(size_t index) = 0; |
| 129 | 125 |
| 130 // Returns whether or not the bookmark star decoration is visible. | 126 // Returns whether or not the bookmark star decoration is visible. |
| 131 virtual bool GetBookmarkStarVisibility() = 0; | 127 virtual bool GetBookmarkStarVisibility() = 0; |
| 132 | 128 |
| 133 protected: | 129 protected: |
| 134 virtual ~LocationBarTesting() {} | 130 virtual ~LocationBarTesting() {} |
| 135 }; | 131 }; |
| 136 | 132 |
| 137 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| OLD | NEW |