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

Side by Side Diff: chrome/browser/ui/gtk/browser_toolbar_gtk.h

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add namespace Created 7 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
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 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const content::NotificationDetails& details) OVERRIDE; 106 const content::NotificationDetails& details) OVERRIDE;
107 107
108 // Whether the wrench/hotdogs menu is currently visible to the user. 108 // Whether the wrench/hotdogs menu is currently visible to the user.
109 bool IsWrenchMenuShowing() const; 109 bool IsWrenchMenuShowing() const;
110 110
111 // Message that we should react to a state change. 111 // Message that we should react to a state change.
112 void UpdateWebContents(content::WebContents* contents, 112 void UpdateWebContents(content::WebContents* contents,
113 bool should_restore_state); 113 bool should_restore_state);
114 114
115 private: 115 private:
116 void OnZoomLevelChanged(const std::string& host); 116 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& host);
117 117
118 // Connect/Disconnect signals for dragging a url onto the home button. 118 // Connect/Disconnect signals for dragging a url onto the home button.
119 void SetUpDragForHomeButton(); 119 void SetUpDragForHomeButton();
120 120
121 // Sets the top corners of the toolbar to rounded, or sets them to normal, 121 // Sets the top corners of the toolbar to rounded, or sets them to normal,
122 // depending on the state of the browser window. Returns false if no action 122 // depending on the state of the browser window. Returns false if no action
123 // was taken (the roundedness was already correct), true otherwise. 123 // was taken (the roundedness was already correct), true otherwise.
124 bool UpdateRoundedness(); 124 bool UpdateRoundedness();
125 125
126 // Gtk callback for the "expose-event" signal. 126 // Gtk callback for the "expose-event" signal.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // rendering. 221 // rendering.
222 ui::OwnedWidgetGtk offscreen_entry_; 222 ui::OwnedWidgetGtk offscreen_entry_;
223 223
224 // Manages the home button drop signal handler. 224 // Manages the home button drop signal handler.
225 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; 225 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 227 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
228 }; 228 };
229 229
230 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 230 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm ('k') | chrome/browser/ui/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698