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

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

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/gtk/browser_window_gtk.h" 8 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
9 #include "chrome/browser/ui/panels/native_panel.h" 9 #include "chrome/browser/ui/panels/native_panel.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 57 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
58 virtual void DrawAttention() OVERRIDE; 58 virtual void DrawAttention() OVERRIDE;
59 virtual bool IsDrawingAttention() const OVERRIDE; 59 virtual bool IsDrawingAttention() const OVERRIDE;
60 virtual bool PreHandlePanelKeyboardEvent( 60 virtual bool PreHandlePanelKeyboardEvent(
61 const NativeWebKeyboardEvent& event, 61 const NativeWebKeyboardEvent& event,
62 bool* is_keyboard_shortcut) OVERRIDE; 62 bool* is_keyboard_shortcut) OVERRIDE;
63 virtual void HandlePanelKeyboardEvent( 63 virtual void HandlePanelKeyboardEvent(
64 const NativeWebKeyboardEvent& event) OVERRIDE; 64 const NativeWebKeyboardEvent& event) OVERRIDE;
65 virtual Browser* GetPanelBrowser() const OVERRIDE; 65 virtual Browser* GetPanelBrowser() const OVERRIDE;
66 virtual void DestroyPanelBrowser() OVERRIDE; 66 virtual void DestroyPanelBrowser() OVERRIDE;
67 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE;
68 virtual int GetRestoredHeight() const OVERRIDE;
69 virtual void SetRestoredHeight(int height) OVERRIDE;
67 70
68 private: 71 private:
69 void SetBoundsImpl(); 72 void SetBoundsImpl();
70 73
71 // MessageLoop::Observer implementation: 74 // MessageLoop::Observer implementation:
72 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 75 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
73 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 76 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
74 77
75 void CreateDragWidget(); 78 void CreateDragWidget();
76 void DestroyDragWidget(); 79 void DestroyDragWidget();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // a task to end the drag and only run it if GTK+ didn't send us the 121 // a task to end the drag and only run it if GTK+ didn't send us the
119 // drag-failed event. 122 // drag-failed event.
120 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; 123 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_;
121 124
122 scoped_ptr<Panel> panel_; 125 scoped_ptr<Panel> panel_;
123 gfx::Rect bounds_; 126 gfx::Rect bounds_;
124 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 127 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
125 }; 128 };
126 129
127 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 130 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.mm ('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