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

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

Issue 10951033: Plumb ClearNativeFocus to DesktopRootWindowHostWin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of FocusNativeView 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/widget/native_widget_win.h ('k') | ui/views/widget/widget.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) 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/native_widget_win.h" 5 #include "ui/views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) { 466 void NativeWidgetWin::SetCursor(gfx::NativeCursor cursor) {
467 message_handler_->SetCursor(cursor); 467 message_handler_->SetCursor(cursor);
468 } 468 }
469 469
470 void NativeWidgetWin::ClearNativeFocus() { 470 void NativeWidgetWin::ClearNativeFocus() {
471 message_handler_->ClearNativeFocus(); 471 message_handler_->ClearNativeFocus();
472 } 472 }
473 473
474 void NativeWidgetWin::FocusNativeView(gfx::NativeView native_view) {
475 message_handler_->FocusHWND(native_view);
476 }
477
478 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { 474 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const {
479 return gfx::Screen::GetDisplayNearestWindow(GetNativeView()).work_area(); 475 return gfx::Screen::GetDisplayNearestWindow(GetNativeView()).work_area();
480 } 476 }
481 477
482 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { 478 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) {
483 } 479 }
484 480
485 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop( 481 Widget::MoveLoopResult NativeWidgetWin::RunMoveLoop(
486 const gfx::Point& drag_offset) { 482 const gfx::Point& drag_offset) {
487 return message_handler_->RunMoveLoop(drag_offset) ? 483 return message_handler_->RunMoveLoop(drag_offset) ?
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 // static 1103 // static
1108 bool NativeWidgetPrivate::IsTouchDown() { 1104 bool NativeWidgetPrivate::IsTouchDown() {
1109 // This currently isn't necessary because we're not generating touch events on 1105 // This currently isn't necessary because we're not generating touch events on
1110 // windows. When we do, this will need to be updated. 1106 // windows. When we do, this will need to be updated.
1111 return false; 1107 return false;
1112 } 1108 }
1113 1109
1114 } // namespace internal 1110 } // namespace internal
1115 1111
1116 } // namespace views 1112 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698