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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8402018: Fix build on the "Linux Clang (ChromeOS dbg)" bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
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 "content/browser/renderer_host/render_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 void RenderWidgetHostViewWin::Focus() { 548 void RenderWidgetHostViewWin::Focus() {
549 if (IsWindow()) 549 if (IsWindow())
550 SetFocus(); 550 SetFocus();
551 } 551 }
552 552
553 void RenderWidgetHostViewWin::Blur() { 553 void RenderWidgetHostViewWin::Blur() {
554 NOTREACHED(); 554 NOTREACHED();
555 } 555 }
556 556
557 bool RenderWidgetHostViewWin::HasFocus() { 557 bool RenderWidgetHostViewWin::HasFocus() const {
558 return ::GetFocus() == m_hWnd; 558 return ::GetFocus() == m_hWnd;
559 } 559 }
560 560
561 void RenderWidgetHostViewWin::Show() { 561 void RenderWidgetHostViewWin::Show() {
562 if (!is_fullscreen_) { 562 if (!is_fullscreen_) {
563 DCHECK(parent_hwnd_); 563 DCHECK(parent_hwnd_);
564 DCHECK(parent_hwnd_ != GetDesktopWindow()); 564 DCHECK(parent_hwnd_ != GetDesktopWindow());
565 SetParent(parent_hwnd_); 565 SetParent(parent_hwnd_);
566 } 566 }
567 ShowWindow(SW_SHOW); 567 ShowWindow(SW_SHOW);
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 2014
2015 if (message == WM_MOUSEMOVE) { 2015 if (message == WM_MOUSEMOVE) {
2016 CPoint center = GetClientCenter(); 2016 CPoint center = GetClientCenter();
2017 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter(). 2017 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter().
2018 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y) 2018 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y)
2019 return; 2019 return;
2020 } 2020 }
2021 2021
2022 ForwardMouseEventToRenderer(message, wparam, lparam); 2022 ForwardMouseEventToRenderer(message, wparam, lparam);
2023 } 2023 }
2024
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698