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

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

Issue 42571: Reverting r12383, caused a build breakage on all platforms. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/go_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 19 matching lines...) Expand all
30 // to open a URL entered in the location bar. 30 // to open a URL entered in the location bar.
31 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0; 31 virtual WindowOpenDisposition GetWindowOpenDisposition() const = 0;
32 32
33 // Returns the PageTransition that should be recorded in history when the URL 33 // Returns the PageTransition that should be recorded in history when the URL
34 // entered in the location bar is loaded. 34 // entered in the location bar is loaded.
35 virtual PageTransition::Type GetPageTransition() const = 0; 35 virtual PageTransition::Type GetPageTransition() const = 0;
36 36
37 // Accepts the current string of text entered in the location bar. 37 // Accepts the current string of text entered in the location bar.
38 virtual void AcceptInput() = 0; 38 virtual void AcceptInput() = 0;
39 39
40 // Accept the current input, overriding the disposition.
41 virtual void AcceptInputWithDisposition(WindowOpenDisposition) = 0;
42
43 // Focuses and selects the contents of the location bar. 40 // Focuses and selects the contents of the location bar.
44 virtual void FocusLocation() = 0; 41 virtual void FocusLocation() = 0;
45 42
46 // Clears the location bar, inserts an annoying little "?" turd and sets 43 // Clears the location bar, inserts an annoying little "?" turd and sets
47 // focus to it. 44 // focus to it.
48 virtual void FocusSearch() = 0; 45 virtual void FocusSearch() = 0;
49 46
50 // Update the state of the feed icon. 47 // Update the state of the feed icon.
51 virtual void UpdateFeedIcon() = 0; 48 virtual void UpdateFeedIcon() = 0;
52 49
53 // Saves the state of the location bar to the specified TabContents, so that 50 // Saves the state of the location bar to the specified TabContents, so that
54 // it can be restored later. (Done when switching tabs). 51 // it can be restored later. (Done when switching tabs).
55 virtual void SaveStateToContents(TabContents* contents) = 0; 52 virtual void SaveStateToContents(TabContents* contents) = 0;
56 }; 53 };
57 54
58 #endif // CHROME_BROWSER_LOCATION_BAR_H_ 55 #endif // CHROME_BROWSER_LOCATION_BAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/go_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698