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

Side by Side Diff: views/widget/native_widget_gtk.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_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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual void SetBoundsConstrained(const gfx::Rect& bounds, 192 virtual void SetBoundsConstrained(const gfx::Rect& bounds,
193 Widget* other_widget) OVERRIDE; 193 Widget* other_widget) OVERRIDE;
194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; 194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
195 virtual void MoveToTop() OVERRIDE; 195 virtual void MoveToTop() OVERRIDE;
196 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; 196 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
197 virtual void Close() OVERRIDE; 197 virtual void Close() OVERRIDE;
198 virtual void CloseNow() OVERRIDE; 198 virtual void CloseNow() OVERRIDE;
199 virtual void EnableClose(bool enable) OVERRIDE; 199 virtual void EnableClose(bool enable) OVERRIDE;
200 virtual void Show() OVERRIDE; 200 virtual void Show() OVERRIDE;
201 virtual void Hide() OVERRIDE; 201 virtual void Hide() OVERRIDE;
202 virtual void ShowNativeWidget(ShowState state) OVERRIDE; 202 virtual void ShowMaximizedWithBounds(
203 const gfx::Rect& restored_bounds) OVERRIDE;
204 virtual void ShowWithState(ShowState state) OVERRIDE;
203 virtual bool IsVisible() const OVERRIDE; 205 virtual bool IsVisible() const OVERRIDE;
204 virtual void Activate() OVERRIDE; 206 virtual void Activate() OVERRIDE;
205 virtual void Deactivate() OVERRIDE; 207 virtual void Deactivate() OVERRIDE;
206 virtual bool IsActive() const OVERRIDE; 208 virtual bool IsActive() const OVERRIDE;
207 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; 209 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
208 virtual void Maximize() OVERRIDE; 210 virtual void Maximize() OVERRIDE;
209 virtual void Minimize() OVERRIDE; 211 virtual void Minimize() OVERRIDE;
210 virtual bool IsMaximized() const OVERRIDE; 212 virtual bool IsMaximized() const OVERRIDE;
211 virtual bool IsMinimized() const OVERRIDE; 213 virtual bool IsMinimized() const OVERRIDE;
212 virtual void Restore() OVERRIDE; 214 virtual void Restore() OVERRIDE;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 449
448 // Have we done a keyboard grab? 450 // Have we done a keyboard grab?
449 bool has_keyboard_grab_; 451 bool has_keyboard_grab_;
450 452
451 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); 453 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk);
452 }; 454 };
453 455
454 } // namespace views 456 } // namespace views
455 457
456 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ 458 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698