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

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

Issue 8477019: Adds Window::MoveChildToFront, with surrounding changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 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
« no previous file with comments | « views/widget/native_widget_wayland.h ('k') | views/widget/native_widget_win.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 #include "views/widget/native_widget_wayland.h" 5 #include "views/widget/native_widget_wayland.h"
6 6
7 #include <cairo.h> 7 #include <cairo.h>
8 #include <cairo-gl.h> 8 #include <cairo-gl.h>
9 #include <EGL/egl.h> 9 #include <EGL/egl.h>
10 #include <GL/gl.h> 10 #include <GL/gl.h>
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 delegate_->OnNativeWidgetSizeChanged(allocation_.size()); 312 delegate_->OnNativeWidgetSizeChanged(allocation_.size());
313 } 313 }
314 314
315 void NativeWidgetWayland::SetSize(const gfx::Size& size) { 315 void NativeWidgetWayland::SetSize(const gfx::Size& size) {
316 gfx::Rect new_alloc = allocation_; 316 gfx::Rect new_alloc = allocation_;
317 new_alloc.set_size(size); 317 new_alloc.set_size(size);
318 318
319 SetBounds(new_alloc); 319 SetBounds(new_alloc);
320 } 320 }
321 321
322 void NativeWidgetWayland::SetBoundsConstrained(const gfx::Rect& bounds,
323 Widget* other_widget) {
324 // TODO(dnicoara) Need to take into account |other_widget|.
325 SetBounds(bounds);
326 }
327
328 void NativeWidgetWayland::MoveAbove(gfx::NativeView native_view) { 322 void NativeWidgetWayland::MoveAbove(gfx::NativeView native_view) {
329 NOTIMPLEMENTED(); 323 NOTIMPLEMENTED();
330 } 324 }
331 325
332 void NativeWidgetWayland::MoveToTop() { 326 void NativeWidgetWayland::MoveToTop() {
333 NOTIMPLEMENTED(); 327 NOTIMPLEMENTED();
334 } 328 }
335 329
336 void NativeWidgetWayland::SetShape(gfx::NativeRegion shape) { 330 void NativeWidgetWayland::SetShape(gfx::NativeRegion shape) {
337 NOTIMPLEMENTED(); 331 NOTIMPLEMENTED();
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 672
679 // static 673 // static
680 bool NativeWidgetPrivate::IsMouseButtonDown() { 674 bool NativeWidgetPrivate::IsMouseButtonDown() {
681 NOTIMPLEMENTED(); 675 NOTIMPLEMENTED();
682 return false; 676 return false;
683 } 677 }
684 678
685 } // namespace internal 679 } // namespace internal
686 680
687 } // namespace views 681 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_wayland.h ('k') | views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698