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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 710553002: aura: Remove WindowTreeHost::PostNativeEvent(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
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_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 526
527 void DesktopWindowTreeHostWin::SetCapture() { 527 void DesktopWindowTreeHostWin::SetCapture() {
528 message_handler_->SetCapture(); 528 message_handler_->SetCapture();
529 } 529 }
530 530
531 void DesktopWindowTreeHostWin::ReleaseCapture() { 531 void DesktopWindowTreeHostWin::ReleaseCapture() {
532 message_handler_->ReleaseCapture(); 532 message_handler_->ReleaseCapture();
533 } 533 }
534 534
535 void DesktopWindowTreeHostWin::PostNativeEvent(
536 const base::NativeEvent& native_event) {
537 }
538
539 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) { 535 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) {
540 ui::CursorLoaderWin cursor_loader; 536 ui::CursorLoaderWin cursor_loader;
541 cursor_loader.SetPlatformCursor(&cursor); 537 cursor_loader.SetPlatformCursor(&cursor);
542 538
543 message_handler_->SetCursor(cursor.platform()); 539 message_handler_->SetCursor(cursor.platform());
544 } 540 }
545 541
546 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { 542 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) {
547 if (is_cursor_visible_ == show) 543 if (is_cursor_visible_ == show)
548 return; 544 return;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 995
1000 // static 996 // static
1001 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
1002 internal::NativeWidgetDelegate* native_widget_delegate, 998 internal::NativeWidgetDelegate* native_widget_delegate,
1003 DesktopNativeWidgetAura* desktop_native_widget_aura) { 999 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1004 return new DesktopWindowTreeHostWin(native_widget_delegate, 1000 return new DesktopWindowTreeHostWin(native_widget_delegate,
1005 desktop_native_widget_aura); 1001 desktop_native_widget_aura);
1006 } 1002 }
1007 1003
1008 } // namespace views 1004 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698