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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_win.cc
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 92ff9cb3cd054381499485d0b7713a1a425f9347..2bb9c51a8d39d682fc653afae6f7e999ec61a558 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::InMetroMode()) {
virtual_keyboard_.CreateInstance(CLSID_TextInputPanel, NULL, CLSCTX_INPROC);
if (virtual_keyboard_) {
virtual_keyboard_->put_AttachedEditWindow(m_hWnd);
@@ -2723,7 +2723,7 @@ LRESULT RenderWidgetHostViewWin::OnPointerMessage(
lparam = MAKELPARAM(point.x, point.y);
if (message == WM_POINTERDOWN) {
- if (!base::win::GetMetroModule()) {
+ if (!base::win::InMetroMode()) {
SetFocus();
pointer_down_context_ = true;
received_focus_change_after_pointer_down_ = false;

Powered by Google App Engine
This is Rietveld 408576698