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

Side by Side Diff: views/widget/native_widget_views.h

Issue 7748036: Restoring a session should restore window minimization state on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « views/widget/native_widget_private.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual TooltipManager* GetTooltipManager() const OVERRIDE; 71 virtual TooltipManager* GetTooltipManager() const OVERRIDE;
72 virtual bool IsScreenReaderActive() const OVERRIDE; 72 virtual bool IsScreenReaderActive() const OVERRIDE;
73 virtual void SendNativeAccessibilityEvent( 73 virtual void SendNativeAccessibilityEvent(
74 View* view, 74 View* view,
75 ui::AccessibilityTypes::Event event_type) OVERRIDE; 75 ui::AccessibilityTypes::Event event_type) OVERRIDE;
76 virtual void SetMouseCapture() OVERRIDE; 76 virtual void SetMouseCapture() OVERRIDE;
77 virtual void ReleaseMouseCapture() OVERRIDE; 77 virtual void ReleaseMouseCapture() OVERRIDE;
78 virtual bool HasMouseCapture() const OVERRIDE; 78 virtual bool HasMouseCapture() const OVERRIDE;
79 virtual InputMethod* CreateInputMethod() OVERRIDE; 79 virtual InputMethod* CreateInputMethod() OVERRIDE;
80 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; 80 virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
81 virtual void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, 81 virtual void GetWindowPlacement(
82 bool* maximized) const OVERRIDE; 82 gfx::Rect* bounds,
83 ui::WindowShowState* show_state) const OVERRIDE;
83 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE; 84 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE;
84 virtual void SetWindowIcons(const SkBitmap& window_icon, 85 virtual void SetWindowIcons(const SkBitmap& window_icon,
85 const SkBitmap& app_icon) OVERRIDE; 86 const SkBitmap& app_icon) OVERRIDE;
86 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE; 87 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE;
87 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; 88 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE;
88 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; 89 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE;
89 virtual void BecomeModal() OVERRIDE; 90 virtual void BecomeModal() OVERRIDE;
90 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; 91 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
91 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; 92 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
92 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 93 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
93 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 94 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
94 virtual void SetSize(const gfx::Size& size) OVERRIDE; 95 virtual void SetSize(const gfx::Size& size) OVERRIDE;
95 virtual void SetBoundsConstrained(const gfx::Rect& bounds, 96 virtual void SetBoundsConstrained(const gfx::Rect& bounds,
96 Widget* other_widget) OVERRIDE; 97 Widget* other_widget) OVERRIDE;
97 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; 98 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
98 virtual void MoveToTop() OVERRIDE; 99 virtual void MoveToTop() OVERRIDE;
99 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; 100 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
100 virtual void Close() OVERRIDE; 101 virtual void Close() OVERRIDE;
101 virtual void CloseNow() OVERRIDE; 102 virtual void CloseNow() OVERRIDE;
102 virtual void EnableClose(bool enable) OVERRIDE; 103 virtual void EnableClose(bool enable) OVERRIDE;
103 virtual void Show() OVERRIDE; 104 virtual void Show() OVERRIDE;
104 virtual void Hide() OVERRIDE; 105 virtual void Hide() OVERRIDE;
105 virtual void ShowMaximizedWithBounds( 106 virtual void ShowMaximizedWithBounds(
106 const gfx::Rect& restored_bounds) OVERRIDE; 107 const gfx::Rect& restored_bounds) OVERRIDE;
107 virtual void ShowWithState(ShowState state) OVERRIDE; 108 virtual void ShowWithWindowState(ui::WindowShowState window_state) OVERRIDE;
108 virtual bool IsVisible() const OVERRIDE; 109 virtual bool IsVisible() const OVERRIDE;
109 virtual void Activate() OVERRIDE; 110 virtual void Activate() OVERRIDE;
110 virtual void Deactivate() OVERRIDE; 111 virtual void Deactivate() OVERRIDE;
111 virtual bool IsActive() const OVERRIDE; 112 virtual bool IsActive() const OVERRIDE;
112 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 113 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
113 virtual void Maximize() OVERRIDE; 114 virtual void Maximize() OVERRIDE;
114 virtual void Minimize() OVERRIDE; 115 virtual void Minimize() OVERRIDE;
115 virtual bool IsMaximized() const OVERRIDE; 116 virtual bool IsMaximized() const OVERRIDE;
116 virtual bool IsMinimized() const OVERRIDE; 117 virtual bool IsMinimized() const OVERRIDE;
117 virtual void Restore() OVERRIDE; 118 virtual void Restore() OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool delete_native_view_; 164 bool delete_native_view_;
164 165
165 std::map<const char*, void*> window_properties_; 166 std::map<const char*, void*> window_properties_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); 168 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
168 }; 169 };
169 170
170 } // namespace views 171 } // namespace views
171 172
172 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 173 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_private.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698