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

Side by Side Diff: chrome/browser/gtk/location_bar_view_gtk.h

Issue 159303: Implement location only display mode (used by popup windows). (Closed)
Patch Set: fix crash Created 11 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
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('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 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 28
29 class LocationBarViewGtk : public AutocompleteEditController, 29 class LocationBarViewGtk : public AutocompleteEditController,
30 public LocationBar, 30 public LocationBar,
31 public LocationBarTesting { 31 public LocationBarTesting {
32 public: 32 public:
33 LocationBarViewGtk(CommandUpdater* command_updater, 33 LocationBarViewGtk(CommandUpdater* command_updater,
34 ToolbarModel* toolbar_model, 34 ToolbarModel* toolbar_model,
35 AutocompletePopupPositioner* popup_positioner); 35 AutocompletePopupPositioner* popup_positioner);
36 virtual ~LocationBarViewGtk(); 36 virtual ~LocationBarViewGtk();
37 37
38 void Init(); 38 void Init(bool popup_window_mode);
39 39
40 void SetProfile(Profile* profile); 40 void SetProfile(Profile* profile);
41 41
42 // Returns the widget the caller should host. You must call Init() first. 42 // Returns the widget the caller should host. You must call Init() first.
43 GtkWidget* widget() { return hbox_.get(); } 43 GtkWidget* widget() { return hbox_.get(); }
44 44
45 // Updates the location bar. We also reset the bar's permanent text and 45 // Updates the location bar. We also reset the bar's permanent text and
46 // security style, and, if |tab_for_state_restoring| is non-NULL, also 46 // security style, and, if |tab_for_state_restoring| is non-NULL, also
47 // restore saved state that the tab holds. 47 // restore saved state that the tab holds.
48 void Update(const TabContents* tab_for_state_restoring); 48 void Update(const TabContents* tab_for_state_restoring);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // The user's desired disposition for how their input should be opened. 140 // The user's desired disposition for how their input should be opened.
141 WindowOpenDisposition disposition_; 141 WindowOpenDisposition disposition_;
142 142
143 // The transition type to use for the navigation. 143 // The transition type to use for the navigation.
144 PageTransition::Type transition_; 144 PageTransition::Type transition_;
145 145
146 // Used schedule a task for the first run info bubble. 146 // Used schedule a task for the first run info bubble.
147 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_; 147 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_;
148 148
149 // When true, the location bar view is read only and also is has a slightly
150 // different presentation (font size / color). This is used for popups.
151 bool popup_window_mode_;
152
149 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 153 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
150 }; 154 };
151 155
152 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 156 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698