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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.h

Issue 10834205: Draggable region support for frameless app window on GTK. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 Panel* panel() const { return panel_.get(); } 52 Panel* panel() const { return panel_.get(); }
53 PaintState paint_state() const { return paint_state_; } 53 PaintState paint_state() const { return paint_state_; }
54 54
55 protected: 55 protected:
56 // BrowserWindowGtk overrides 56 // BrowserWindowGtk overrides
57 virtual BrowserTitlebarBase* CreateBrowserTitlebar() OVERRIDE; 57 virtual BrowserTitlebarBase* CreateBrowserTitlebar() OVERRIDE;
58 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; 58 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE;
59 virtual GdkRegion* GetWindowShape(int width, int height) const OVERRIDE; 59 virtual GdkRegion* GetWindowShape(int width, int height) const OVERRIDE;
60 virtual bool HandleTitleBarLeftMousePress( 60 virtual bool HandleTitleBarLeftMousePress(
61 GdkEventButton* event, 61 GdkEventButton* event) OVERRIDE;
62 guint32 last_click_time,
63 gfx::Point last_click_position) OVERRIDE;
64 virtual bool HandleWindowEdgeLeftMousePress( 62 virtual bool HandleWindowEdgeLeftMousePress(
65 GtkWindow* window, 63 GtkWindow* window,
66 GdkWindowEdge edge, 64 GdkWindowEdge edge,
67 GdkEventButton* event) OVERRIDE; 65 GdkEventButton* event) OVERRIDE;
68 virtual void SaveWindowPosition() OVERRIDE; 66 virtual void SaveWindowPosition() OVERRIDE;
69 virtual void SetGeometryHints() OVERRIDE; 67 virtual void SetGeometryHints() OVERRIDE;
70 virtual bool UseCustomFrame() const OVERRIDE; 68 virtual bool UseCustomFrame() const OVERRIDE;
71 virtual void DrawFrame(GtkWidget* widget, GdkEventExpose* event) OVERRIDE; 69 virtual void DrawFrame(GtkWidget* widget, GdkEventExpose* event) OVERRIDE;
72 virtual void OnSizeChanged(int width, int height) OVERRIDE; 70 virtual void OnSizeChanged(int width, int height) OVERRIDE;
73 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; 71 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // current one completes. In this case, we want to start the new animation 164 // current one completes. In this case, we want to start the new animation
167 // from where the last one left. 165 // from where the last one left.
168 gfx::Rect last_animation_progressed_bounds_; 166 gfx::Rect last_animation_progressed_bounds_;
169 167
170 content::NotificationRegistrar registrar_; 168 content::NotificationRegistrar registrar_;
171 169
172 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 170 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
173 }; 171 };
174 172
175 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 173 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_window_util.cc ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698