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

Side by Side Diff: chrome/browser/ui/views/panels/panel_view.h

Issue 13853010: Make panels turn on or off shadow effect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 7 years, 8 months 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) 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/base/animation/animation_delegate.h" 10 #include "ui/base/animation/animation_delegate.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Panel::ExpansionState new_state) OVERRIDE; 73 Panel::ExpansionState new_state) OVERRIDE;
74 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; 74 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE;
75 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; 75 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE;
76 virtual gfx::Size WindowSizeFromContentSize( 76 virtual gfx::Size WindowSizeFromContentSize(
77 const gfx::Size& content_size) const OVERRIDE; 77 const gfx::Size& content_size) const OVERRIDE;
78 virtual gfx::Size ContentSizeFromWindowSize( 78 virtual gfx::Size ContentSizeFromWindowSize(
79 const gfx::Size& window_size) const OVERRIDE; 79 const gfx::Size& window_size) const OVERRIDE;
80 virtual int TitleOnlyHeight() const OVERRIDE; 80 virtual int TitleOnlyHeight() const OVERRIDE;
81 virtual void MinimizePanelBySystem() OVERRIDE; 81 virtual void MinimizePanelBySystem() OVERRIDE;
82 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; 82 virtual bool IsPanelMinimizedBySystem() const OVERRIDE;
83 virtual void ShowShadow(bool show) OVERRIDE;
83 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; 84 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE;
84 85
85 // Overridden from views::View: 86 // Overridden from views::View:
86 virtual gfx::Size GetMinimumSize() OVERRIDE; 87 virtual gfx::Size GetMinimumSize() OVERRIDE;
87 virtual gfx::Size GetMaximumSize() OVERRIDE; 88 virtual gfx::Size GetMaximumSize() OVERRIDE;
88 89
89 // Return true if the mouse event is handled. 90 // Return true if the mouse event is handled.
90 // |mouse_location| is in screen coordinate system. 91 // |mouse_location| is in screen coordinate system.
91 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); 92 bool OnTitlebarMousePressed(const gfx::Point& mouse_location);
92 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); 93 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 249
249 #if defined(OS_WIN) 250 #if defined(OS_WIN)
250 // Used to provide custom taskbar thumbnail for Windows 7 and later. 251 // Used to provide custom taskbar thumbnail for Windows 7 and later.
251 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_; 252 scoped_ptr<TaskbarWindowThumbnailerWin> thumbnailer_;
252 #endif 253 #endif
253 254
254 DISALLOW_COPY_AND_ASSIGN(PanelView); 255 DISALLOW_COPY_AND_ASSIGN(PanelView);
255 }; 256 };
256 257
257 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_ 258 #endif // CHROME_BROWSER_UI_VIEWS_PANELS_PANEL_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/stacked_panel_collection.cc ('k') | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698