OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 class BrowserToolbarGtk; | 32 class BrowserToolbarGtk; |
33 class DevToolsWindow; | 33 class DevToolsWindow; |
34 class DownloadShelfGtk; | 34 class DownloadShelfGtk; |
35 class ExtensionKeybindingRegistryGtk; | 35 class ExtensionKeybindingRegistryGtk; |
36 class FindBarGtk; | 36 class FindBarGtk; |
37 class FullscreenExitBubbleGtk; | 37 class FullscreenExitBubbleGtk; |
38 class GlobalMenuBar; | 38 class GlobalMenuBar; |
39 class InfoBarContainerGtk; | 39 class InfoBarContainerGtk; |
40 class InstantPreviewControllerGtk; | 40 class InstantPreviewControllerGtk; |
41 class LocationBar; | 41 class LocationBar; |
42 class PrefService; | 42 class PrefServiceSyncable; |
43 class StatusBubbleGtk; | 43 class StatusBubbleGtk; |
44 class TabContentsContainerGtk; | 44 class TabContentsContainerGtk; |
45 class TabStripGtk; | 45 class TabStripGtk; |
46 | 46 |
47 namespace autofill { | 47 namespace autofill { |
48 class PasswordGenerator; | 48 class PasswordGenerator; |
49 } | 49 } |
50 | 50 |
51 namespace extensions { | 51 namespace extensions { |
52 class ActiveTabPermissionGranter; | 52 class ActiveTabPermissionGranter; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 GtkWidget* titlebar_widget() const; | 244 GtkWidget* titlebar_widget() const; |
245 | 245 |
246 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); } | 246 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); } |
247 | 247 |
248 gfx::Rect bounds() const { return bounds_; } | 248 gfx::Rect bounds() const { return bounds_; } |
249 | 249 |
250 // Returns the tab we're currently displaying in the tab contents container. | 250 // Returns the tab we're currently displaying in the tab contents container. |
251 content::WebContents* GetDisplayedTab(); | 251 content::WebContents* GetDisplayedTab(); |
252 | 252 |
253 static void RegisterUserPrefs(PrefService* prefs); | 253 static void RegisterUserPrefs(PrefServiceSyncable* prefs); |
254 | 254 |
255 // Tells GTK that the toolbar area is invalidated and needs redrawing. We | 255 // Tells GTK that the toolbar area is invalidated and needs redrawing. We |
256 // have this method as a hack because GTK doesn't queue the toolbar area for | 256 // have this method as a hack because GTK doesn't queue the toolbar area for |
257 // redraw when it should. | 257 // redraw when it should. |
258 void QueueToolbarRedraw(); | 258 void QueueToolbarRedraw(); |
259 | 259 |
260 // Get the position where the infobar arrow should be anchored in | 260 // Get the position where the infobar arrow should be anchored in |
261 // |relative_to| coordinates. This is the middle of the omnibox location icon. | 261 // |relative_to| coordinates. This is the middle of the omnibox location icon. |
262 int GetXPositionOfLocationIcon(GtkWidget* relative_to); | 262 int GetXPositionOfLocationIcon(GtkWidget* relative_to); |
263 | 263 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 572 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
573 | 573 |
574 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 574 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
575 | 575 |
576 content::NotificationRegistrar registrar_; | 576 content::NotificationRegistrar registrar_; |
577 | 577 |
578 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 578 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
579 }; | 579 }; |
580 | 580 |
581 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 581 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |