Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: chrome/browser/ui/omnibox/location_bar.h

Issue 10796116: [Web Intents] Basic location bar UI for window disposition picker affordance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Updates the state of the images showing the content settings status. 60 // Updates the state of the images showing the content settings status.
61 virtual void UpdateContentSettingsIcons() = 0; 61 virtual void UpdateContentSettingsIcons() = 0;
62 62
63 // Updates the state of the page actions. 63 // Updates the state of the page actions.
64 virtual void UpdatePageActions() = 0; 64 virtual void UpdatePageActions() = 0;
65 65
66 // Called when the page-action data needs to be refreshed, e.g. when an 66 // Called when the page-action data needs to be refreshed, e.g. when an
67 // extension is unloaded or crashes. 67 // extension is unloaded or crashes.
68 virtual void InvalidatePageActions() = 0; 68 virtual void InvalidatePageActions() = 0;
69 69
70 // Updates the state of the web intents picker affordance tool.
71 virtual void UpdateWebIntentsTool() = 0;
Bernhard Bauer 2012/07/24 20:37:03 Does this compile on platforms other than Linux?
72
70 // Saves the state of the location bar to the specified WebContents, so that 73 // Saves the state of the location bar to the specified WebContents, so that
71 // it can be restored later. (Done when switching tabs). 74 // it can be restored later. (Done when switching tabs).
72 virtual void SaveStateToContents(content::WebContents* contents) = 0; 75 virtual void SaveStateToContents(content::WebContents* contents) = 0;
73 76
74 // Reverts the location bar. The bar's permanent text will be shown. 77 // Reverts the location bar. The bar's permanent text will be shown.
75 virtual void Revert() = 0; 78 virtual void Revert() = 0;
76 79
77 // Returns a pointer to the text entry view. 80 // Returns a pointer to the text entry view.
78 virtual const OmniboxView* GetLocationEntry() const = 0; 81 virtual const OmniboxView* GetLocationEntry() const = 0;
79 virtual OmniboxView* GetLocationEntry() = 0; 82 virtual OmniboxView* GetLocationEntry() = 0;
(...skipping 20 matching lines...) Expand all
100 virtual ExtensionAction* GetVisiblePageAction(size_t index) = 0; 103 virtual ExtensionAction* GetVisiblePageAction(size_t index) = 0;
101 104
102 // Simulates a left mouse pressed on the visible page action at |index|. 105 // Simulates a left mouse pressed on the visible page action at |index|.
103 virtual void TestPageActionPressed(size_t index) = 0; 106 virtual void TestPageActionPressed(size_t index) = 0;
104 107
105 protected: 108 protected:
106 virtual ~LocationBarTesting() {} 109 virtual ~LocationBarTesting() {}
107 }; 110 };
108 111
109 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_ 112 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698