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

Side by Side Diff: ui/views/widget/desktop_native_widget_aura.cc

Issue 10910242: Makes copying layers clone external textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_native_widget_aura.h"
6 6
7 #include "ui/aura/root_window_host.h" 7 #include "ui/aura/root_window_host.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/hit_test.h" 9 #include "ui/base/hit_test.h"
10 #include "ui/compositor/layer.h" 10 #include "ui/compositor/layer.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) { 362 void DesktopNativeWidgetAura::OnWindowTargetVisibilityChanged(bool visible) {
363 } 363 }
364 364
365 bool DesktopNativeWidgetAura::HasHitTestMask() const { 365 bool DesktopNativeWidgetAura::HasHitTestMask() const {
366 return false; 366 return false;
367 } 367 }
368 368
369 void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const { 369 void DesktopNativeWidgetAura::GetHitTestMask(gfx::Path* mask) const {
370 } 370 }
371 371
372 scoped_refptr<ui::Texture> DesktopNativeWidgetAura::CopyTexture() {
373 // The layer we create doesn't have an external texture, so this should never
374 // get invoked.
375 NOTREACHED();
376 return scoped_refptr<ui::Texture>();
377 }
378
372 //////////////////////////////////////////////////////////////////////////////// 379 ////////////////////////////////////////////////////////////////////////////////
373 // DesktopNativeWidgetAura, ui::EventHandler implementation: 380 // DesktopNativeWidgetAura, ui::EventHandler implementation:
374 381
375 ui::EventResult DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) { 382 ui::EventResult DesktopNativeWidgetAura::OnKeyEvent(ui::KeyEvent* event) {
376 return ui::ER_UNHANDLED; 383 return ui::ER_UNHANDLED;
377 } 384 }
378 385
379 ui::EventResult DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) { 386 ui::EventResult DesktopNativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
380 DCHECK(window_->IsVisible()); 387 DCHECK(window_->IsVisible());
381 if (event->type() == ui::ET_MOUSEWHEEL) { 388 if (event->type() == ui::ET_MOUSEWHEEL) {
(...skipping 17 matching lines...) Expand all
399 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { 406 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
400 return ui::TOUCH_STATUS_UNKNOWN; 407 return ui::TOUCH_STATUS_UNKNOWN;
401 } 408 }
402 409
403 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( 410 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent(
404 ui::GestureEvent* event) { 411 ui::GestureEvent* event) {
405 return ui::ER_UNHANDLED; 412 return ui::ER_UNHANDLED;
406 } 413 }
407 414
408 } // namespace views 415 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698