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_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 114 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; |
115 virtual void HandlePanelKeyboardEvent( | 115 virtual void HandlePanelKeyboardEvent( |
116 const NativeWebKeyboardEvent& event) OVERRIDE; | 116 const NativeWebKeyboardEvent& event) OVERRIDE; |
117 virtual gfx::Size WindowSizeFromContentSize( | 117 virtual gfx::Size WindowSizeFromContentSize( |
118 const gfx::Size& content_size) const OVERRIDE; | 118 const gfx::Size& content_size) const OVERRIDE; |
119 virtual gfx::Size ContentSizeFromWindowSize( | 119 virtual gfx::Size ContentSizeFromWindowSize( |
120 const gfx::Size& window_size) const OVERRIDE; | 120 const gfx::Size& window_size) const OVERRIDE; |
121 virtual int TitleOnlyHeight() const OVERRIDE; | 121 virtual int TitleOnlyHeight() const OVERRIDE; |
122 virtual Browser* GetPanelBrowser() const OVERRIDE; | 122 virtual Browser* GetPanelBrowser() const OVERRIDE; |
123 virtual void DestroyPanelBrowser() OVERRIDE; | 123 virtual void DestroyPanelBrowser() OVERRIDE; |
124 virtual gfx::Size IconOnlySize() const OVERRIDE; | |
125 virtual void EnsurePanelFullyVisible() OVERRIDE; | 124 virtual void EnsurePanelFullyVisible() OVERRIDE; |
126 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; | 125 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |
127 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 126 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
128 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 127 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
129 | 128 |
130 // Overridden from AnimationDelegate: | 129 // Overridden from AnimationDelegate: |
131 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 130 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
132 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 131 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
133 | 132 |
134 bool EndDragging(bool cancelled); | 133 bool EndDragging(bool cancelled); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // The last view that had focus in the panel. This is saved so that focus can | 178 // The last view that had focus in the panel. This is saved so that focus can |
180 // be restored properly when a drag ends. | 179 // be restored properly when a drag ends. |
181 views::View* old_focused_view_; | 180 views::View* old_focused_view_; |
182 | 181 |
183 content::NotificationRegistrar registrar_; | 182 content::NotificationRegistrar registrar_; |
184 | 183 |
185 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 184 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
186 }; | 185 }; |
187 | 186 |
188 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 187 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |