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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Overridden from NativePanel: | 86 // Overridden from NativePanel: |
87 virtual void ShowPanel() OVERRIDE; | 87 virtual void ShowPanel() OVERRIDE; |
88 virtual void ShowPanelInactive() OVERRIDE; | 88 virtual void ShowPanelInactive() OVERRIDE; |
89 virtual gfx::Rect GetPanelBounds() const OVERRIDE; | 89 virtual gfx::Rect GetPanelBounds() const OVERRIDE; |
90 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 90 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; |
91 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; | 91 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; |
92 virtual void ClosePanel() OVERRIDE; | 92 virtual void ClosePanel() OVERRIDE; |
93 virtual void ActivatePanel() OVERRIDE; | 93 virtual void ActivatePanel() OVERRIDE; |
94 virtual void DeactivatePanel() OVERRIDE; | 94 virtual void DeactivatePanel() OVERRIDE; |
95 virtual bool IsPanelActive() const OVERRIDE; | 95 virtual bool IsPanelActive() const OVERRIDE; |
| 96 virtual void PreventActivationByOS(bool prevent_activation) OVERRIDE; |
96 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 97 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
97 virtual void UpdatePanelTitleBar() OVERRIDE; | 98 virtual void UpdatePanelTitleBar() OVERRIDE; |
98 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; | 99 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; |
99 virtual void ShowTaskManagerForPanel() OVERRIDE; | 100 virtual void ShowTaskManagerForPanel() OVERRIDE; |
100 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 101 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
101 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 102 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
102 virtual void PanelWebContentsFocused(content::WebContents* contents) OVERRIDE; | 103 virtual void PanelWebContentsFocused(content::WebContents* contents) OVERRIDE; |
103 virtual void PanelCut() OVERRIDE; | 104 virtual void PanelCut() OVERRIDE; |
104 virtual void PanelCopy() OVERRIDE; | 105 virtual void PanelCopy() OVERRIDE; |
105 virtual void PanelPaste() OVERRIDE; | 106 virtual void PanelPaste() OVERRIDE; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // The last view that had focus in the panel. This is saved so that focus can | 170 // The last view that had focus in the panel. This is saved so that focus can |
170 // be restored properly when a drag ends. | 171 // be restored properly when a drag ends. |
171 views::View* old_focused_view_; | 172 views::View* old_focused_view_; |
172 | 173 |
173 content::NotificationRegistrar registrar_; | 174 content::NotificationRegistrar registrar_; |
174 | 175 |
175 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 176 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
176 }; | 177 }; |
177 | 178 |
178 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 179 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
OLD | NEW |