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_VIEWS_PANELS_PANEL_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/panels/native_panel.h" | 9 #include "chrome/browser/ui/panels/native_panel.h" |
10 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual gfx::Size ContentSizeFromWindowSize( | 76 virtual gfx::Size ContentSizeFromWindowSize( |
77 const gfx::Size& window_size) const OVERRIDE; | 77 const gfx::Size& window_size) const OVERRIDE; |
78 virtual int TitleOnlyHeight() const OVERRIDE; | 78 virtual int TitleOnlyHeight() const OVERRIDE; |
79 virtual void MinimizePanelBySystem() OVERRIDE; | 79 virtual void MinimizePanelBySystem() OVERRIDE; |
80 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; | 80 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; |
81 virtual bool IsPanelShownOnActiveDesktop() const OVERRIDE; | 81 virtual bool IsPanelShownOnActiveDesktop() const OVERRIDE; |
82 virtual void ShowShadow(bool show) OVERRIDE; | 82 virtual void ShowShadow(bool show) OVERRIDE; |
83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
84 | 84 |
85 // Overridden from views::View: | 85 // Overridden from views::View: |
86 virtual gfx::Size GetMinimumSize() OVERRIDE; | 86 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
87 virtual gfx::Size GetMaximumSize() OVERRIDE; | 87 virtual gfx::Size GetMaximumSize() OVERRIDE; |
88 | 88 |
89 // Return true if the mouse event is handled. | 89 // Return true if the mouse event is handled. |
90 // |mouse_location| is in screen coordinate system. | 90 // |mouse_location| is in screen coordinate system. |
91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); | 91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); |
92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); | 92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); |
93 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); | 93 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); |
94 bool OnTitlebarMouseCaptureLost(); | 94 bool OnTitlebarMouseCaptureLost(); |
95 | 95 |
96 PanelFrameView* GetFrameView() const; | 96 PanelFrameView* GetFrameView() const; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 #if defined(OS_WIN) | 251 #if defined(OS_WIN) |
252 // Used to provide custom taskbar thumbnail for Windows 7 and later. | 252 // Used to provide custom taskbar thumbnail for Windows 7 and later. |
253 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; | 253 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; |
254 #endif | 254 #endif |
255 | 255 |
256 DISALLOW_COPY_AND_ASSIGN(PanelView); | 256 DISALLOW_COPY_AND_ASSIGN(PanelView); |
257 }; | 257 }; |
258 | 258 |
259 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ | 259 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ |
OLD | NEW |