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

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

Issue 7790010: Revert 98679 - Restoring a session should restore window minimization state on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); 49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton);
50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); 50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation);
51 51
52 // Overridden from BrowserView: 52 // Overridden from BrowserView:
53 virtual void Init() OVERRIDE; 53 virtual void Init() OVERRIDE;
54 virtual void Close() OVERRIDE; 54 virtual void Close() OVERRIDE;
55 virtual bool CanResize() const OVERRIDE; 55 virtual bool CanResize() const OVERRIDE;
56 virtual bool CanMaximize() const OVERRIDE; 56 virtual bool CanMaximize() const OVERRIDE;
57 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 57 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
58 virtual void UpdateTitleBar() OVERRIDE; 58 virtual void UpdateTitleBar() OVERRIDE;
59 virtual bool GetSavedWindowPlacement( 59 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE;
60 gfx::Rect* bounds,
61 ui::WindowShowState* show_state) const OVERRIDE;
62 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) 60 virtual bool AcceleratorPressed(const views::Accelerator& accelerator)
63 OVERRIDE; 61 OVERRIDE;
64 62
65 // Overridden from views::WidgetDelegate: 63 // Overridden from views::WidgetDelegate:
66 virtual void OnDisplayChanged() OVERRIDE; 64 virtual void OnDisplayChanged() OVERRIDE;
67 virtual void OnWorkAreaChanged() OVERRIDE; 65 virtual void OnWorkAreaChanged() OVERRIDE;
68 virtual bool WillProcessWorkAreaChange() const OVERRIDE; 66 virtual bool WillProcessWorkAreaChange() const OVERRIDE;
69 67
70 // Overridden from views::Widget::Observer 68 // Overridden from views::Widget::Observer
71 virtual void OnWidgetActivationChanged(views::Widget* widget, 69 virtual void OnWidgetActivationChanged(views::Widget* widget,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool is_drawing_attention_; 135 bool is_drawing_attention_;
138 136
139 // Timestamp to prevent minimizing the panel when the user clicks the titlebar 137 // Timestamp to prevent minimizing the panel when the user clicks the titlebar
140 // to clear the attension state. 138 // to clear the attension state.
141 base::TimeTicks attention_cleared_time_; 139 base::TimeTicks attention_cleared_time_;
142 140
143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); 141 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView);
144 }; 142 };
145 143
146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 144 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698