OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |