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

Side by Side Diff: views/widget/native_widget_gtk.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/views_delegate.h ('k') | views/widget/native_widget_gtk.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_GTK_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual TooltipManager* GetTooltipManager() const OVERRIDE; 159 virtual TooltipManager* GetTooltipManager() const OVERRIDE;
160 virtual bool IsScreenReaderActive() const OVERRIDE; 160 virtual bool IsScreenReaderActive() const OVERRIDE;
161 virtual void SendNativeAccessibilityEvent( 161 virtual void SendNativeAccessibilityEvent(
162 View* view, 162 View* view,
163 ui::AccessibilityTypes::Event event_type) OVERRIDE; 163 ui::AccessibilityTypes::Event event_type) OVERRIDE;
164 virtual void SetMouseCapture() OVERRIDE; 164 virtual void SetMouseCapture() OVERRIDE;
165 virtual void ReleaseMouseCapture() OVERRIDE; 165 virtual void ReleaseMouseCapture() OVERRIDE;
166 virtual bool HasMouseCapture() const OVERRIDE; 166 virtual bool HasMouseCapture() const OVERRIDE;
167 virtual InputMethod* CreateInputMethod() OVERRIDE; 167 virtual InputMethod* CreateInputMethod() OVERRIDE;
168 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; 168 virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
169 virtual void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, 169 virtual void GetWindowPlacement(
170 bool* maximized) const OVERRIDE; 170 gfx::Rect* bounds,
171 ui::WindowShowState* show_state) const OVERRIDE;
171 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE; 172 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE;
172 virtual void SetWindowIcons(const SkBitmap& window_icon, 173 virtual void SetWindowIcons(const SkBitmap& window_icon,
173 const SkBitmap& app_icon) OVERRIDE; 174 const SkBitmap& app_icon) OVERRIDE;
174 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE; 175 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE;
175 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; 176 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE;
176 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; 177 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE;
177 virtual void BecomeModal() OVERRIDE; 178 virtual void BecomeModal() OVERRIDE;
178 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; 179 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
179 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; 180 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
180 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 181 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
181 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 182 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
182 virtual void SetSize(const gfx::Size& size) OVERRIDE; 183 virtual void SetSize(const gfx::Size& size) OVERRIDE;
183 virtual void SetBoundsConstrained(const gfx::Rect& bounds, 184 virtual void SetBoundsConstrained(const gfx::Rect& bounds,
184 Widget* other_widget) OVERRIDE; 185 Widget* other_widget) OVERRIDE;
185 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; 186 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
186 virtual void MoveToTop() OVERRIDE; 187 virtual void MoveToTop() OVERRIDE;
187 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; 188 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
188 virtual void Close() OVERRIDE; 189 virtual void Close() OVERRIDE;
189 virtual void CloseNow() OVERRIDE; 190 virtual void CloseNow() OVERRIDE;
190 virtual void EnableClose(bool enable) OVERRIDE; 191 virtual void EnableClose(bool enable) OVERRIDE;
191 virtual void Show() OVERRIDE; 192 virtual void Show() OVERRIDE;
192 virtual void Hide() OVERRIDE; 193 virtual void Hide() OVERRIDE;
193 virtual void ShowMaximizedWithBounds( 194 virtual void ShowMaximizedWithBounds(
194 const gfx::Rect& restored_bounds) OVERRIDE; 195 const gfx::Rect& restored_bounds) OVERRIDE;
195 virtual void ShowWithState(ShowState state) OVERRIDE; 196 virtual void ShowWithWindowState(ui::WindowShowState window_state) OVERRIDE;
196 virtual bool IsVisible() const OVERRIDE; 197 virtual bool IsVisible() const OVERRIDE;
197 virtual void Activate() OVERRIDE; 198 virtual void Activate() OVERRIDE;
198 virtual void Deactivate() OVERRIDE; 199 virtual void Deactivate() OVERRIDE;
199 virtual bool IsActive() const OVERRIDE; 200 virtual bool IsActive() const OVERRIDE;
200 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 201 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
201 virtual void Maximize() OVERRIDE; 202 virtual void Maximize() OVERRIDE;
202 virtual void Minimize() OVERRIDE; 203 virtual void Minimize() OVERRIDE;
203 virtual bool IsMaximized() const OVERRIDE; 204 virtual bool IsMaximized() const OVERRIDE;
204 virtual bool IsMinimized() const OVERRIDE; 205 virtual bool IsMinimized() const OVERRIDE;
205 virtual void Restore() OVERRIDE; 206 virtual void Restore() OVERRIDE;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 447
447 // If we were created for a menu. 448 // If we were created for a menu.
448 bool is_menu_; 449 bool is_menu_;
449 450
450 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); 451 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk);
451 }; 452 };
452 453
453 } // namespace views 454 } // namespace views
454 455
455 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ 456 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_
OLDNEW
« no previous file with comments | « views/views_delegate.h ('k') | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698