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

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

Issue 10939006: Make cursors work on win aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_native_widget_helper_aura.cc » ('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) 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.h" 7 #include "ui/aura/root_window.h"
8 #include "ui/aura/root_window_host.h" 8 #include "ui/aura/root_window_host.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 const gfx::Point& location, 291 const gfx::Point& location,
292 int operation) { 292 int operation) {
293 } 293 }
294 294
295 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) { 295 void DesktopNativeWidgetAura::SchedulePaintInRect(const gfx::Rect& rect) {
296 if (window_) 296 if (window_)
297 window_->SchedulePaintInRect(rect); 297 window_->SchedulePaintInRect(rect);
298 } 298 }
299 299
300 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) { 300 void DesktopNativeWidgetAura::SetCursor(gfx::NativeCursor cursor) {
301 desktop_root_window_host_->AsRootWindowHost()->SetCursor(cursor);
301 } 302 }
302 303
303 void DesktopNativeWidgetAura::ClearNativeFocus() { 304 void DesktopNativeWidgetAura::ClearNativeFocus() {
304 } 305 }
305 306
306 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) { 307 void DesktopNativeWidgetAura::FocusNativeView(gfx::NativeView native_view) {
307 } 308 }
308 309
309 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const { 310 gfx::Rect DesktopNativeWidgetAura::GetWorkAreaBoundsInScreen() const {
310 return gfx::Rect(100, 100); 311 return gfx::Rect(100, 100);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { 432 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
432 return ui::TOUCH_STATUS_UNKNOWN; 433 return ui::TOUCH_STATUS_UNKNOWN;
433 } 434 }
434 435
435 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( 436 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent(
436 ui::GestureEvent* event) { 437 ui::GestureEvent* event) {
437 return ui::ER_UNHANDLED; 438 return ui::ER_UNHANDLED;
438 } 439 }
439 440
440 } // namespace views 441 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_native_widget_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698