summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host_view_win.cc
diff options
context:
space:
mode:
authorsiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 20:40:06 +0000
committersiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 20:40:06 +0000
commit7bf385c831f60fe166f0a9e4370a4542d2d40ff3 (patch)
treef24ecac3a32c2a7d14969693efdfac1058e2f6a2 /content/browser/renderer_host/render_widget_host_view_win.cc
parent3a36243cac7dbb5d700b25d3d51736895b4388f0 (diff)
downloadchromium_src-7bf385c831f60fe166f0a9e4370a4542d2d40ff3.zip
chromium_src-7bf385c831f60fe166f0a9e4370a4542d2d40ff3.tar.gz
chromium_src-7bf385c831f60fe166f0a9e4370a4542d2d40ff3.tar.bz2
Implement base::win::IsMetroProcess.
Change GetMetroModule callers that don't need the HMODULE. TBR=stevenjb@chromium.org,brettw@chromium.org,mirandac@chromium.org,sky@chromium.org,kalman@chromium.org BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10560015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_view_win.cc')
-rw-r--r--content/browser/renderer_host/render_widget_host_view_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 93e74a6..641d46c 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -606,7 +606,7 @@ void RenderWidgetHostViewWin::CreateWnd(HWND parent) {
// ATL function to create the window.
Create(parent);
if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
- !base::win::GetMetroModule()) {
+ !base::win::IsMetroProcess()) {
virtual_keyboard_.CreateInstance(CLSID_TextInputPanel, NULL, CLSCTX_INPROC);
if (virtual_keyboard_) {
virtual_keyboard_->put_AttachedEditWindow(m_hWnd);
@@ -2724,7 +2724,7 @@ LRESULT RenderWidgetHostViewWin::OnPointerMessage(
lparam = MAKELPARAM(point.x, point.y);
if (message == WM_POINTERDOWN) {
- if (!base::win::GetMetroModule()) {
+ if (!base::win::IsMetroProcess()) {
SetFocus();
pointer_down_context_ = true;
received_focus_change_after_pointer_down_ = false;