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

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

Issue 340077: Gets find bar animation/clipping to work on views/gtk. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 7
8 #include "app/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 9
10 class ThemeProvider; 10 class ThemeProvider;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // frame bounds otherwise. If the receiving Widget is not a frame, 89 // frame bounds otherwise. If the receiving Widget is not a frame,
90 // including_frame is ignored. 90 // including_frame is ignored.
91 virtual void GetBounds(gfx::Rect* out, bool including_frame) const = 0; 91 virtual void GetBounds(gfx::Rect* out, bool including_frame) const = 0;
92 92
93 // Sizes and/or places the widget to the specified bounds, size or position. 93 // Sizes and/or places the widget to the specified bounds, size or position.
94 virtual void SetBounds(const gfx::Rect& bounds) = 0; 94 virtual void SetBounds(const gfx::Rect& bounds) = 0;
95 95
96 // Places the widget in front of the specified widget in z-order. 96 // Places the widget in front of the specified widget in z-order.
97 virtual void MoveAbove(Widget* widget) = 0; 97 virtual void MoveAbove(Widget* widget) = 0;
98 98
99 // Sets a shape on the widget. 99 // Sets a shape on the widget. This takes ownership of shape.
100 virtual void SetShape(const gfx::Path& shape) = 0; 100 virtual void SetShape(gfx::NativeRegion shape) = 0;
101 101
102 // Hides the widget then closes it after a return to the message loop. 102 // Hides the widget then closes it after a return to the message loop.
103 virtual void Close() = 0; 103 virtual void Close() = 0;
104 104
105 // Closes the widget immediately. Compare to |Close|. This will destroy the 105 // Closes the widget immediately. Compare to |Close|. This will destroy the
106 // window handle associated with this Widget, so should not be called from 106 // window handle associated with this Widget, so should not be called from
107 // any code that expects it to be valid beyond this call. 107 // any code that expects it to be valid beyond this call.
108 virtual void CloseNow() = 0; 108 virtual void CloseNow() = 0;
109 109
110 // Shows or hides the widget, without changing activation state. 110 // Shows or hides the widget, without changing activation state.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual FocusManager* GetFocusManager() { return NULL; } 172 virtual FocusManager* GetFocusManager() { return NULL; }
173 173
174 // Forwarded from the RootView so that the widget can do any cleanup. 174 // Forwarded from the RootView so that the widget can do any cleanup.
175 virtual void ViewHierarchyChanged(bool is_add, View *parent, 175 virtual void ViewHierarchyChanged(bool is_add, View *parent,
176 View *child) = 0; 176 View *child) = 0;
177 }; 177 };
178 178
179 } // namespace views 179 } // namespace views
180 180
181 #endif // VIEWS_WIDGET_WIDGET_H_ 181 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698