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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view.h

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void OnWorkAreaChanged() OVERRIDE; 64 virtual void OnWorkAreaChanged() OVERRIDE;
65 virtual bool WillProcessWorkAreaChange() const OVERRIDE; 65 virtual bool WillProcessWorkAreaChange() const OVERRIDE;
66 66
67 // Overridden from views::Widget::Observer 67 // Overridden from views::Widget::Observer
68 virtual void OnWidgetActivationChanged(views::Widget* widget, 68 virtual void OnWidgetActivationChanged(views::Widget* widget,
69 bool active) OVERRIDE; 69 bool active) OVERRIDE;
70 70
71 // Overridden from NativePanel: 71 // Overridden from NativePanel:
72 virtual void ShowPanel() OVERRIDE; 72 virtual void ShowPanel() OVERRIDE;
73 virtual void ShowPanelInactive() OVERRIDE; 73 virtual void ShowPanelInactive() OVERRIDE;
74 virtual gfx::Rect GetPanelRestoredBounds() const OVERRIDE;
74 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 75 virtual gfx::Rect GetPanelBounds() const OVERRIDE;
76 virtual void SetPanelRestoredBounds(const gfx::Rect& bounds) OVERRIDE;
75 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 77 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE;
76 virtual void OnPanelExpansionStateChanged( 78 virtual void OnPanelExpansionStateChanged(
77 Panel::ExpansionState expansion_state) OVERRIDE; 79 Panel::ExpansionState expansion_state) OVERRIDE;
78 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, 80 virtual bool ShouldBringUpPanelTitleBar(int mouse_x,
79 int mouse_y) const OVERRIDE; 81 int mouse_y) const OVERRIDE;
80 virtual void ClosePanel() OVERRIDE; 82 virtual void ClosePanel() OVERRIDE;
81 virtual void ActivatePanel() OVERRIDE; 83 virtual void ActivatePanel() OVERRIDE;
82 virtual void DeactivatePanel() OVERRIDE; 84 virtual void DeactivatePanel() OVERRIDE;
83 virtual bool IsPanelActive() const OVERRIDE; 85 virtual bool IsPanelActive() const OVERRIDE;
84 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; 86 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
85 virtual void UpdatePanelTitleBar() OVERRIDE; 87 virtual void UpdatePanelTitleBar() OVERRIDE;
86 virtual void ShowTaskManagerForPanel() OVERRIDE; 88 virtual void ShowTaskManagerForPanel() OVERRIDE;
87 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 89 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
88 virtual void DrawAttention() OVERRIDE; 90 virtual void DrawAttention() OVERRIDE;
89 virtual bool IsDrawingAttention() const OVERRIDE; 91 virtual bool IsDrawingAttention() const OVERRIDE;
92 virtual gfx::Size GetNonClientAreaSize() const OVERRIDE;
90 virtual Browser* GetPanelBrowser() const OVERRIDE; 93 virtual Browser* GetPanelBrowser() const OVERRIDE;
91 virtual void DestroyPanelBrowser() OVERRIDE; 94 virtual void DestroyPanelBrowser() OVERRIDE;
92 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; 95 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE;
93 96
94 // Overridden from AnimationDelegate: 97 // Overridden from AnimationDelegate:
95 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 98 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
96 99
97 bool EndDragging(bool cancelled); 100 bool EndDragging(bool cancelled);
98 101
99 void StopDrawingAttention(); 102 void StopDrawingAttention();
(...skipping 29 matching lines...) Expand all
129 bool is_drawing_attention_; 132 bool is_drawing_attention_;
130 133
131 // Timestamp to prevent minimizing the panel when the user clicks the titlebar 134 // Timestamp to prevent minimizing the panel when the user clicks the titlebar
132 // to clear the attension state. 135 // to clear the attension state.
133 base::TimeTicks attention_cleared_time_; 136 base::TimeTicks attention_cleared_time_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); 138 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView);
136 }; 139 };
137 140
138 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 141 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698