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

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

Issue 6623025: Make more methods on Widget non-virtual and move to NativeWidget... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « no previous file | views/widget/widget.h » ('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_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // to update tooltips. 60 // to update tooltips.
61 virtual TooltipManager* GetTooltipManager() const = 0; 61 virtual TooltipManager* GetTooltipManager() const = 0;
62 62
63 // Widget pass-thrus --------------------------------------------------------- 63 // Widget pass-thrus ---------------------------------------------------------
64 // TODO(beng): Investigate if we can move these to a NativeWidgetPrivate 64 // TODO(beng): Investigate if we can move these to a NativeWidgetPrivate
65 // interface. 65 // interface.
66 66
67 // See method documentation in Widget: 67 // See method documentation in Widget:
68 virtual gfx::Rect GetWindowScreenBounds() const = 0; 68 virtual gfx::Rect GetWindowScreenBounds() const = 0;
69 virtual gfx::Rect GetClientAreaScreenBounds() const = 0; 69 virtual gfx::Rect GetClientAreaScreenBounds() const = 0;
70 virtual void SetBounds(const gfx::Rect& bounds) = 0;
71 virtual void MoveAbove(Widget* widget) = 0;
72 virtual void SetShape(gfx::NativeRegion shape) = 0;
73 virtual void Close() = 0;
74 virtual void CloseNow() = 0;
75 virtual void Show() = 0;
76 virtual void Hide() = 0;
77 virtual void SetOpacity(unsigned char opacity) = 0;
78 virtual void SetAlwaysOnTop(bool on_top) = 0;
79 virtual bool IsVisible() const = 0;
80 virtual bool IsActive() const = 0;
81 virtual bool IsAccessibleWidget() const = 0;
70 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; 82 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0;
71 virtual void RunShellDrag(View* view, 83 virtual void RunShellDrag(View* view,
72 const ui::OSExchangeData& data, 84 const ui::OSExchangeData& data,
73 int operation) = 0; 85 int operation) = 0;
74 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; 86 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0;
75 virtual void SetCursor(gfx::NativeCursor cursor) = 0; 87 virtual void SetCursor(gfx::NativeCursor cursor) = 0;
76 }; 88 };
77 89
78 } // namespace views 90 } // namespace views
79 91
80 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_ 92 #endif // VIEWS_WIDGET_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698