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

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

Issue 8681025: Add methods needed for overflow panels to NativePanel interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback 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 "chrome/browser/ui/gtk/browser_window_gtk.h" 9 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
10 #include "chrome/browser/ui/gtk/menu_gtk.h" 10 #include "chrome/browser/ui/gtk/menu_gtk.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool* is_keyboard_shortcut) OVERRIDE; 90 bool* is_keyboard_shortcut) OVERRIDE;
91 virtual void HandlePanelKeyboardEvent( 91 virtual void HandlePanelKeyboardEvent(
92 const NativeWebKeyboardEvent& event) OVERRIDE; 92 const NativeWebKeyboardEvent& event) OVERRIDE;
93 virtual Browser* GetPanelBrowser() const OVERRIDE; 93 virtual Browser* GetPanelBrowser() const OVERRIDE;
94 virtual void DestroyPanelBrowser() OVERRIDE; 94 virtual void DestroyPanelBrowser() OVERRIDE;
95 virtual gfx::Size WindowSizeFromContentSize( 95 virtual gfx::Size WindowSizeFromContentSize(
96 const gfx::Size& content_size) const OVERRIDE; 96 const gfx::Size& content_size) const OVERRIDE;
97 virtual gfx::Size ContentSizeFromWindowSize( 97 virtual gfx::Size ContentSizeFromWindowSize(
98 const gfx::Size& window_size) const OVERRIDE; 98 const gfx::Size& window_size) const OVERRIDE;
99 virtual int TitleOnlyHeight() const OVERRIDE; 99 virtual int TitleOnlyHeight() const OVERRIDE;
100 virtual gfx::Size GetIconifiedPanelSize() const OVERRIDE;
101 virtual void EnsurePanelFullyVisible() OVERRIDE;
100 102
101 private: 103 private:
102 void StartBoundsAnimation(const gfx::Rect& current_bounds); 104 void StartBoundsAnimation(const gfx::Rect& current_bounds);
103 bool IsAnimatingBounds() const; 105 bool IsAnimatingBounds() const;
104 106
105 // MessageLoop::Observer implementation: 107 // MessageLoop::Observer implementation:
106 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; 108 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE;
107 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; 109 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE;
108 110
109 // Overridden from AnimationDelegate: 111 // Overridden from AnimationDelegate:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 base::Time disableMinimizeUntilTime_; 183 base::Time disableMinimizeUntilTime_;
182 184
183 // Used to animate the bounds change. 185 // Used to animate the bounds change.
184 scoped_ptr<ui::SlideAnimation> bounds_animator_; 186 scoped_ptr<ui::SlideAnimation> bounds_animator_;
185 gfx::Rect animation_start_bounds_; 187 gfx::Rect animation_start_bounds_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 189 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
188 }; 190 };
189 191
190 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 192 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698