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

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: Rebased. 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
« no previous file with comments | « chrome/common/pepper_flash.cc ('k') | ui/base/layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1818f58bcac747e8d26cc4a869aef011071530fd..c60e29f7908b31166dd3abe6da9d91dc1b8c5ed8 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;
« no previous file with comments | « chrome/common/pepper_flash.cc ('k') | ui/base/layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698