Chromium Code Reviews| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 virtual void DestroyBrowser() OVERRIDE; | 255 virtual void DestroyBrowser() OVERRIDE; |
| 256 | 256 |
| 257 // Returns an instance of |BrowserTitlebar| to be used for this window. | 257 // Returns an instance of |BrowserTitlebar| to be used for this window. |
| 258 virtual BrowserTitlebar* CreateBrowserTitlebar(); | 258 virtual BrowserTitlebar* CreateBrowserTitlebar(); |
| 259 | 259 |
| 260 // Checks to see if the mouse pointer at |x|, |y| is over the border of the | 260 // Checks to see if the mouse pointer at |x|, |y| is over the border of the |
| 261 // custom frame (a spot that should trigger a window resize). Returns true if | 261 // custom frame (a spot that should trigger a window resize). Returns true if |
| 262 // it should and sets |edge|. | 262 // it should and sets |edge|. |
| 263 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); | 263 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); |
| 264 | 264 |
| 265 // Returns the window shape for the window with |width| and |height|. | |
| 266 // The caller is responsible to destroy the region if non-null region is | |
|
jennb
2012/05/01 01:01:30
responsible for destroying
| |
| 267 // returned. | |
| 268 virtual GdkRegion* GetWindowShape(int width, int height) const; | |
| 269 | |
| 270 // Draws the border, including resizable corners, for the custom frame. | |
| 271 virtual void DrawCustomFrameBorder(GtkWidget* widget); | |
| 272 | |
| 265 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, | 273 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, |
| 266 guint32 last_click_time, | 274 guint32 last_click_time, |
| 267 gfx::Point last_click_position); | 275 gfx::Point last_click_position); |
| 268 | 276 |
| 269 // Returns true if handled. | 277 // Returns true if handled. |
| 270 virtual bool HandleWindowEdgeLeftMousePress(GtkWindow* window, | 278 virtual bool HandleWindowEdgeLeftMousePress(GtkWindow* window, |
| 271 GdkWindowEdge edge, | 279 GdkWindowEdge edge, |
| 272 GdkEventButton* event); | 280 GdkEventButton* event); |
| 273 | 281 |
| 274 // Save the window position in the prefs. | 282 // Save the window position in the prefs. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 554 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 562 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 555 | 563 |
| 556 FullscreenExitBubbleType fullscreen_exit_bubble_type_; | 564 FullscreenExitBubbleType fullscreen_exit_bubble_type_; |
| 557 | 565 |
| 558 content::NotificationRegistrar registrar_; | 566 content::NotificationRegistrar registrar_; |
| 559 | 567 |
| 560 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 568 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 561 }; | 569 }; |
| 562 | 570 |
| 563 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 571 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |