| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 244 |
| 245 GtkWidget* titlebar_widget() const; | 245 GtkWidget* titlebar_widget() const; |
| 246 | 246 |
| 247 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); } | 247 BrowserToolbarGtk* GetToolbar() { return toolbar_.get(); } |
| 248 | 248 |
| 249 gfx::Rect bounds() const { return bounds_; } | 249 gfx::Rect bounds() const { return bounds_; } |
| 250 | 250 |
| 251 // Returns the tab we're currently displaying in the tab contents container. | 251 // Returns the tab we're currently displaying in the tab contents container. |
| 252 content::WebContents* GetDisplayedTab(); | 252 content::WebContents* GetDisplayedTab(); |
| 253 | 253 |
| 254 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 254 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 255 | 255 |
| 256 // Tells GTK that the toolbar area is invalidated and needs redrawing. We | 256 // Tells GTK that the toolbar area is invalidated and needs redrawing. We |
| 257 // have this method as a hack because GTK doesn't queue the toolbar area for | 257 // have this method as a hack because GTK doesn't queue the toolbar area for |
| 258 // redraw when it should. | 258 // redraw when it should. |
| 259 void QueueToolbarRedraw(); | 259 void QueueToolbarRedraw(); |
| 260 | 260 |
| 261 // Get the position where the infobar arrow should be anchored in | 261 // Get the position where the infobar arrow should be anchored in |
| 262 // |relative_to| coordinates. This is the middle of the omnibox location icon. | 262 // |relative_to| coordinates. This is the middle of the omnibox location icon. |
| 263 int GetXPositionOfLocationIcon(GtkWidget* relative_to); | 263 int GetXPositionOfLocationIcon(GtkWidget* relative_to); |
| 264 | 264 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 578 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 579 | 579 |
| 580 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 580 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
| 581 | 581 |
| 582 content::NotificationRegistrar registrar_; | 582 content::NotificationRegistrar registrar_; |
| 583 | 583 |
| 584 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 584 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 585 }; | 585 }; |
| 586 | 586 |
| 587 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 587 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |