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

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

Issue 7129022: Move last of event handlers down to NativeWidgetWin/Gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 enum ShowState { 155 enum ShowState {
156 SHOW_RESTORED, 156 SHOW_RESTORED,
157 SHOW_MAXIMIZED, 157 SHOW_MAXIMIZED,
158 SHOW_INACTIVE 158 SHOW_INACTIVE
159 }; 159 };
160 160
161 // Returns a handle for the underlying native widget that can be used for 161 // Returns a handle for the underlying native widget that can be used for
162 // accelerated drawing. 162 // accelerated drawing.
163 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; 163 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
164 164
165 // Makes the NativeWindow modal.
166 virtual void BecomeModal() = 0;
167
165 // Widget pass-thrus, private to Views. -------------------------------------- 168 // Widget pass-thrus, private to Views. --------------------------------------
166 // See method documentation in Widget. 169 // See method documentation in Widget.
167 virtual gfx::Rect GetWindowScreenBounds() const = 0; 170 virtual gfx::Rect GetWindowScreenBounds() const = 0;
168 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; 171 virtual gfx::Rect GetClientAreaScreenBounds() const = 0;
169 virtual gfx::Rect GetRestoredBounds() const = 0; 172 virtual gfx::Rect GetRestoredBounds() const = 0;
170 virtual void SetBounds(const gfx::Rect& bounds) = 0; 173 virtual void SetBounds(const gfx::Rect& bounds) = 0;
171 virtual void SetSize(const gfx::Size& size) = 0; 174 virtual void SetSize(const gfx::Size& size) = 0;
172 virtual void SetBoundsConstrained(const gfx::Rect& bounds, 175 virtual void SetBoundsConstrained(const gfx::Rect& bounds,
173 Widget* other_widget) = 0; 176 Widget* other_widget) = 0;
174 virtual void MoveAbove(gfx::NativeView native_view) = 0; 177 virtual void MoveAbove(gfx::NativeView native_view) = 0;
(...skipping 23 matching lines...) Expand all
198 virtual void RunShellDrag(View* view, 201 virtual void RunShellDrag(View* view,
199 const ui::OSExchangeData& data, 202 const ui::OSExchangeData& data,
200 int operation) = 0; 203 int operation) = 0;
201 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; 204 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0;
202 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 205 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
203 }; 206 };
204 207
205 } // namespace views 208 } // namespace views
206 209
207 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ 210 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_gtk.h ('k') | views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698