| OLD | NEW |
| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // redraw when it should. | 256 // redraw when it should. |
| 257 void QueueToolbarRedraw(); | 257 void QueueToolbarRedraw(); |
| 258 | 258 |
| 259 // Get the position where the infobar arrow should be anchored in | 259 // Get the position where the infobar arrow should be anchored in |
| 260 // |relative_to| coordinates. This is the middle of the omnibox location icon. | 260 // |relative_to| coordinates. This is the middle of the omnibox location icon. |
| 261 int GetXPositionOfLocationIcon(GtkWidget* relative_to); | 261 int GetXPositionOfLocationIcon(GtkWidget* relative_to); |
| 262 | 262 |
| 263 protected: | 263 protected: |
| 264 virtual void DestroyBrowser() OVERRIDE; | 264 virtual void DestroyBrowser() OVERRIDE; |
| 265 | 265 |
| 266 // Returns an instance of |BrowserTitlebar| to be used for this window. |
| 267 virtual BrowserTitlebar* CreateBrowserTitlebar(); |
| 268 |
| 266 // Checks to see if the mouse pointer at |x|, |y| is over the border of the | 269 // Checks to see if the mouse pointer at |x|, |y| is over the border of the |
| 267 // custom frame (a spot that should trigger a window resize). Returns true if | 270 // custom frame (a spot that should trigger a window resize). Returns true if |
| 268 // it should and sets |edge|. | 271 // it should and sets |edge|. |
| 269 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); | 272 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); |
| 270 | 273 |
| 271 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, | 274 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, |
| 272 guint32 last_click_time, | 275 guint32 last_click_time, |
| 273 gfx::Point last_click_position); | 276 gfx::Point last_click_position); |
| 274 | 277 |
| 275 // Returns true if handled. | 278 // Returns true if handled. |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 563 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 561 | 564 |
| 562 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 565 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
| 563 | 566 |
| 564 content::NotificationRegistrar registrar_; | 567 content::NotificationRegistrar registrar_; |
| 565 | 568 |
| 566 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 569 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 567 }; | 570 }; |
| 568 | 571 |
| 569 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 572 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |