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

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

Issue 8775022: Add Panel::SetPanelBoundsInstantly for all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 "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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 GdkEventExpose* event) OVERRIDE; 62 GdkEventExpose* event) OVERRIDE;
63 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; 63 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE;
64 // 'focus-in-event' handler. 64 // 'focus-in-event' handler.
65 virtual void HandleFocusIn(GtkWidget* widget, 65 virtual void HandleFocusIn(GtkWidget* widget,
66 GdkEventFocus* event) OVERRIDE; 66 GdkEventFocus* event) OVERRIDE;
67 67
68 // Overridden from NativePanel: 68 // Overridden from NativePanel:
69 virtual void ShowPanel() OVERRIDE; 69 virtual void ShowPanel() OVERRIDE;
70 virtual void ShowPanelInactive() OVERRIDE; 70 virtual void ShowPanelInactive() OVERRIDE;
71 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 71 virtual gfx::Rect GetPanelBounds() const OVERRIDE;
72 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 72 virtual void SetPanelBounds(const gfx::Rect& bounds, bool animate) OVERRIDE;
73 virtual void ClosePanel() OVERRIDE; 73 virtual void ClosePanel() OVERRIDE;
74 virtual void ActivatePanel() OVERRIDE; 74 virtual void ActivatePanel() OVERRIDE;
75 virtual void DeactivatePanel() OVERRIDE; 75 virtual void DeactivatePanel() OVERRIDE;
76 virtual bool IsPanelActive() const OVERRIDE; 76 virtual bool IsPanelActive() const OVERRIDE;
77 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; 77 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
78 virtual void UpdatePanelTitleBar() OVERRIDE; 78 virtual void UpdatePanelTitleBar() OVERRIDE;
79 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; 79 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE;
80 virtual void ShowTaskManagerForPanel() OVERRIDE; 80 virtual void ShowTaskManagerForPanel() OVERRIDE;
81 virtual FindBar* CreatePanelFindBar() OVERRIDE; 81 virtual FindBar* CreatePanelFindBar() OVERRIDE;
82 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 82 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 base::Time disableMinimizeUntilTime_; 182 base::Time disableMinimizeUntilTime_;
183 183
184 // Used to animate the bounds change. 184 // Used to animate the bounds change.
185 scoped_ptr<ui::SlideAnimation> bounds_animator_; 185 scoped_ptr<ui::SlideAnimation> bounds_animator_;
186 gfx::Rect animation_start_bounds_; 186 gfx::Rect animation_start_bounds_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 188 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
189 }; 189 };
190 190
191 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 191 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698