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

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

Issue 6990072: The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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) 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 "chrome/browser/renderer_host/render_widget_host_view_win.h" 5 #include "chrome/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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 views::FocusManager::GetFocusManagerForNativeView(m_hWnd); 493 views::FocusManager::GetFocusManagerForNativeView(m_hWnd);
494 // We don't have a FocusManager if we are hidden. 494 // We don't have a FocusManager if we are hidden.
495 if (focus_manager) 495 if (focus_manager)
496 focus_manager->ClearFocus(); 496 focus_manager->ClearFocus();
497 } 497 }
498 498
499 bool RenderWidgetHostViewWin::HasFocus() { 499 bool RenderWidgetHostViewWin::HasFocus() {
500 return ::GetFocus() == m_hWnd; 500 return ::GetFocus() == m_hWnd;
501 } 501 }
502 502
503 void RenderWidgetHostViewWin::PpapiPluginFocusChanged(bool focused) {
kochi 2011/05/25 06:19:44 Add TODO() or a comment why no implementation here
kinaba 2011/05/25 22:23:53 (Removed from the patch set 2.)
504 }
505
503 void RenderWidgetHostViewWin::Show() { 506 void RenderWidgetHostViewWin::Show() {
504 DCHECK(parent_hwnd_); 507 DCHECK(parent_hwnd_);
505 DCHECK(parent_hwnd_ != GetDesktopWindow()); 508 DCHECK(parent_hwnd_ != GetDesktopWindow());
506 SetParent(parent_hwnd_); 509 SetParent(parent_hwnd_);
507 ShowWindow(SW_SHOW); 510 ShowWindow(SW_SHOW);
508 511
509 // Save away our HWND in the parent window as a property so that the 512 // Save away our HWND in the parent window as a property so that the
510 // accessibility code can find it. 513 // accessibility code can find it.
511 accessibility_prop_.reset(new ViewProp( 514 accessibility_prop_.reset(new ViewProp(
512 GetParent(), 515 GetParent(),
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 } 1777 }
1775 1778
1776 // static 1779 // static
1777 RenderWidgetHostView* 1780 RenderWidgetHostView*
1778 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1781 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1779 gfx::NativeView native_view) { 1782 gfx::NativeView native_view) {
1780 return ::IsWindow(native_view) ? 1783 return ::IsWindow(native_view) ?
1781 reinterpret_cast<RenderWidgetHostView*>( 1784 reinterpret_cast<RenderWidgetHostView*>(
1782 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; 1785 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL;
1783 } 1786 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698