| 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 "content/public/common/page_transition_types.h" | 8 #include "ui/base/page_transition_types.h" |
| 9 #include "ui/base/window_open_disposition.h" | 9 #include "ui/base/window_open_disposition.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 11 | 11 |
| 12 class ExtensionAction; | 12 class ExtensionAction; |
| 13 class LocationBarTesting; | 13 class LocationBarTesting; |
| 14 class OmniboxView; | 14 class OmniboxView; |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class WebContents; | 18 class WebContents; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 class LocationBar { | 30 class LocationBar { |
| 31 public: | 31 public: |
| 32 explicit LocationBar(Profile* profile); | 32 explicit LocationBar(Profile* profile); |
| 33 | 33 |
| 34 // Shows the first run bubble anchored to the location bar. | 34 // Shows the first run bubble anchored to the location bar. |
| 35 virtual void ShowFirstRunBubble() = 0; | 35 virtual void ShowFirstRunBubble() = 0; |
| 36 | 36 |
| 37 // The details necessary to open the user's desired omnibox match. | 37 // The details necessary to open the user's desired omnibox match. |
| 38 virtual GURL GetDestinationURL() const = 0; | 38 virtual GURL GetDestinationURL() const = 0; |
| 39 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0; | 39 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0; |
| 40 virtual content::PageTransition GetPageTransition() const = 0; | 40 virtual ui::PageTransition GetPageTransition() const = 0; |
| 41 | 41 |
| 42 // Accepts the current string of text entered in the location bar. | 42 // Accepts the current string of text entered in the location bar. |
| 43 virtual void AcceptInput() = 0; | 43 virtual void AcceptInput() = 0; |
| 44 | 44 |
| 45 // Focuses the location bar. Optionally also selects its contents. | 45 // Focuses the location bar. Optionally also selects its contents. |
| 46 virtual void FocusLocation(bool select_all) = 0; | 46 virtual void FocusLocation(bool select_all) = 0; |
| 47 | 47 |
| 48 // Clears the location bar, inserts an annoying little "?" turd and sets | 48 // Clears the location bar, inserts an annoying little "?" turd and sets |
| 49 // focus to it. | 49 // focus to it. |
| 50 virtual void FocusSearch() = 0; | 50 virtual void FocusSearch() = 0; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void TestPageActionPressed(size_t index) = 0; | 124 virtual void TestPageActionPressed(size_t index) = 0; |
| 125 | 125 |
| 126 // Returns whether or not the bookmark star decoration is visible. | 126 // Returns whether or not the bookmark star decoration is visible. |
| 127 virtual bool GetBookmarkStarVisibility() = 0; | 127 virtual bool GetBookmarkStarVisibility() = 0; |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 virtual ~LocationBarTesting() {} | 130 virtual ~LocationBarTesting() {} |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ | 133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ |
| OLD | NEW |