| 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_PANELS_PANEL_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_GTK_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 48 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; |
| 49 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; | 49 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; |
| 50 virtual void ClosePanel() OVERRIDE; | 50 virtual void ClosePanel() OVERRIDE; |
| 51 virtual void ActivatePanel() OVERRIDE; | 51 virtual void ActivatePanel() OVERRIDE; |
| 52 virtual void DeactivatePanel() OVERRIDE; | 52 virtual void DeactivatePanel() OVERRIDE; |
| 53 virtual bool IsPanelActive() const OVERRIDE; | 53 virtual bool IsPanelActive() const OVERRIDE; |
| 54 virtual void PreventActivationByOS(bool prevent_activation) OVERRIDE; | 54 virtual void PreventActivationByOS(bool prevent_activation) OVERRIDE; |
| 55 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 55 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
| 56 virtual void UpdatePanelTitleBar() OVERRIDE; | 56 virtual void UpdatePanelTitleBar() OVERRIDE; |
| 57 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; | 57 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; |
| 58 virtual FindBar* CreatePanelFindBar() OVERRIDE; | |
| 59 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 58 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
| 60 virtual void PanelCut() OVERRIDE; | 59 virtual void PanelCut() OVERRIDE; |
| 61 virtual void PanelCopy() OVERRIDE; | 60 virtual void PanelCopy() OVERRIDE; |
| 62 virtual void PanelPaste() OVERRIDE; | 61 virtual void PanelPaste() OVERRIDE; |
| 63 virtual void DrawAttention(bool draw_attention) OVERRIDE; | 62 virtual void DrawAttention(bool draw_attention) OVERRIDE; |
| 64 virtual bool IsDrawingAttention() const OVERRIDE; | 63 virtual bool IsDrawingAttention() const OVERRIDE; |
| 65 virtual bool PreHandlePanelKeyboardEvent( | |
| 66 const content::NativeWebKeyboardEvent& event, | |
| 67 bool* is_keyboard_shortcut) OVERRIDE; | |
| 68 virtual void HandlePanelKeyboardEvent( | 64 virtual void HandlePanelKeyboardEvent( |
| 69 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 65 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 70 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 66 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
| 71 virtual void PanelExpansionStateChanging( | 67 virtual void PanelExpansionStateChanging( |
| 72 Panel::ExpansionState old_state, | 68 Panel::ExpansionState old_state, |
| 73 Panel::ExpansionState new_state) OVERRIDE; | 69 Panel::ExpansionState new_state) OVERRIDE; |
| 74 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; | 70 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; |
| 75 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; | 71 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; |
| 76 virtual Browser* GetPanelBrowser() const OVERRIDE; | |
| 77 // These sizes are in screen coordinates. | 72 // These sizes are in screen coordinates. |
| 78 virtual gfx::Size WindowSizeFromContentSize( | 73 virtual gfx::Size WindowSizeFromContentSize( |
| 79 const gfx::Size& content_size) const OVERRIDE; | 74 const gfx::Size& content_size) const OVERRIDE; |
| 80 virtual gfx::Size ContentSizeFromWindowSize( | 75 virtual gfx::Size ContentSizeFromWindowSize( |
| 81 const gfx::Size& window_size) const OVERRIDE; | 76 const gfx::Size& window_size) const OVERRIDE; |
| 82 virtual int TitleOnlyHeight() const OVERRIDE; | 77 virtual int TitleOnlyHeight() const OVERRIDE; |
| 83 virtual void EnsurePanelFullyVisible() OVERRIDE; | |
| 84 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 78 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 85 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 79 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
| 86 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 80 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
| 87 | 81 |
| 88 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 82 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
| 89 | 83 |
| 90 // Overridden from ActiveWindowWatcherXObserver. | 84 // Overridden from ActiveWindowWatcherXObserver. |
| 91 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; | 85 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; |
| 92 | 86 |
| 93 bool UsingDefaultTheme() const; | 87 bool UsingDefaultTheme() const; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // The accelerator group used to handle accelerators, owned by this object. | 199 // The accelerator group used to handle accelerators, owned by this object. |
| 206 GtkAccelGroup* accel_group_; | 200 GtkAccelGroup* accel_group_; |
| 207 | 201 |
| 208 // The container for the titlebar. | 202 // The container for the titlebar. |
| 209 scoped_ptr<PanelTitlebarGtk> titlebar_; | 203 scoped_ptr<PanelTitlebarGtk> titlebar_; |
| 210 | 204 |
| 211 DISALLOW_COPY_AND_ASSIGN(PanelGtk); | 205 DISALLOW_COPY_AND_ASSIGN(PanelGtk); |
| 212 }; | 206 }; |
| 213 | 207 |
| 214 #endif // CHROME_BROWSER_UI_PANELS_PANEL_GTK_H_ | 208 #endif // CHROME_BROWSER_UI_PANELS_PANEL_GTK_H_ |
| OLD | NEW |