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

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

Issue 7358005: Makes sure widget is created at right size before showing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 9 years, 5 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 VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "views/widget/native_widget.h" 10 #include "views/widget/native_widget.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual void SetBoundsConstrained(const gfx::Rect& bounds, 183 virtual void SetBoundsConstrained(const gfx::Rect& bounds,
184 Widget* other_widget) = 0; 184 Widget* other_widget) = 0;
185 virtual void MoveAbove(gfx::NativeView native_view) = 0; 185 virtual void MoveAbove(gfx::NativeView native_view) = 0;
186 virtual void MoveToTop() = 0; 186 virtual void MoveToTop() = 0;
187 virtual void SetShape(gfx::NativeRegion shape) = 0; 187 virtual void SetShape(gfx::NativeRegion shape) = 0;
188 virtual void Close() = 0; 188 virtual void Close() = 0;
189 virtual void CloseNow() = 0; 189 virtual void CloseNow() = 0;
190 virtual void EnableClose(bool enable) = 0; 190 virtual void EnableClose(bool enable) = 0;
191 virtual void Show() = 0; 191 virtual void Show() = 0;
192 virtual void Hide() = 0; 192 virtual void Hide() = 0;
193 virtual void ShowNativeWidget(ShowState state) = 0; 193 // Invoked if the initial show should maximize the window. |restored_bounds|
194 // is the bounds of the window when not maximized.
195 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
196 virtual void ShowWithState(ShowState state) = 0;
194 virtual bool IsVisible() const = 0; 197 virtual bool IsVisible() const = 0;
195 virtual void Activate() = 0; 198 virtual void Activate() = 0;
196 virtual void Deactivate() = 0; 199 virtual void Deactivate() = 0;
197 virtual bool IsActive() const = 0; 200 virtual bool IsActive() const = 0;
198 virtual void SetAlwaysOnTop(bool always_on_top) = 0; 201 virtual void SetAlwaysOnTop(bool always_on_top) = 0;
199 virtual void Maximize() = 0; 202 virtual void Maximize() = 0;
200 virtual void Minimize() = 0; 203 virtual void Minimize() = 0;
201 virtual bool IsMaximized() const = 0; 204 virtual bool IsMaximized() const = 0;
202 virtual bool IsMinimized() const = 0; 205 virtual bool IsMinimized() const = 0;
203 virtual void Restore() = 0; 206 virtual void Restore() = 0;
(...skipping 11 matching lines...) Expand all
215 virtual void FocusNativeView(gfx::NativeView native_view) = 0; 218 virtual void FocusNativeView(gfx::NativeView native_view) = 0;
216 219
217 // Overridden from NativeWidget: 220 // Overridden from NativeWidget:
218 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 221 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
219 }; 222 };
220 223
221 } // namespace internal 224 } // namespace internal
222 } // namespace views 225 } // namespace views
223 226
224 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 227 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698