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

Side by Side Diff: views/widget/native_widget_views.cc

Issue 7185005: Add View::ReorderChildView and Widget::MoveToTop. (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 #include "views/widget/native_widget_views.h" 5 #include "views/widget/native_widget_views.h"
6 6
7 #include "views/view.h" 7 #include "views/view.h"
8 #include "views/widget/native_widget_view.h" 8 #include "views/widget/native_widget_view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void NativeWidgetViews::SetBoundsConstrained(const gfx::Rect& bounds, 195 void NativeWidgetViews::SetBoundsConstrained(const gfx::Rect& bounds,
196 Widget* other_widget) { 196 Widget* other_widget) {
197 // TODO(beng): honor other_widget. 197 // TODO(beng): honor other_widget.
198 SetBounds(bounds); 198 SetBounds(bounds);
199 } 199 }
200 200
201 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) { 201 void NativeWidgetViews::MoveAbove(gfx::NativeView native_view) {
202 NOTIMPLEMENTED(); 202 NOTIMPLEMENTED();
203 } 203 }
204 204
205 void NativeWidgetViews::MoveToTop() {
206 host_view_->ReorderChildView(view_, -1);
207 }
208
205 void NativeWidgetViews::SetShape(gfx::NativeRegion region) { 209 void NativeWidgetViews::SetShape(gfx::NativeRegion region) {
206 NOTIMPLEMENTED(); 210 NOTIMPLEMENTED();
207 } 211 }
208 212
209 void NativeWidgetViews::Close() { 213 void NativeWidgetViews::Close() {
210 Hide(); 214 Hide();
211 if (close_widget_factory_.empty()) { 215 if (close_widget_factory_.empty()) {
212 MessageLoop::current()->PostTask(FROM_HERE, 216 MessageLoop::current()->PostTask(FROM_HERE,
213 close_widget_factory_.NewRunnableMethod(&NativeWidgetViews::CloseNow)); 217 close_widget_factory_.NewRunnableMethod(&NativeWidgetViews::CloseNow));
214 } 218 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 NativeWidget* NativeWidgetViews::GetParentNativeWidget() { 326 NativeWidget* NativeWidgetViews::GetParentNativeWidget() {
323 return view_->GetWidget()->native_widget(); 327 return view_->GetWidget()->native_widget();
324 } 328 }
325 329
326 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const { 330 const NativeWidget* NativeWidgetViews::GetParentNativeWidget() const {
327 return view_->GetWidget()->native_widget(); 331 return view_->GetWidget()->native_widget();
328 } 332 }
329 333
330 } // namespace views 334 } // namespace views
331 335
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698