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

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

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() Created 8 years 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 | « content/browser/DEPS ('k') | content/content_browser.gypi » ('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 eb25310f6ccd473f55bfdddfb420a0f1524a39c5..0c26c503a4c2a78fd83584b14dc81344de9aca20 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -66,6 +66,7 @@
#include "webkit/plugins/npapi/plugin_constants_win.h"
#include "webkit/plugins/npapi/webplugin.h"
#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
+#include "win8/util/win8_util.h"
using base::TimeDelta;
using base::TimeTicks;
@@ -739,7 +740,7 @@ void RenderWidgetHostViewWin::Destroy() {
being_destroyed_ = true;
CleanupCompositorWindow();
- if (is_fullscreen_ && base::win::IsMetroProcess()) {
+ if (is_fullscreen_ && win8::IsSingleWindowMetroMode()) {
MetroCloseFrameWindow close_frame_window =
reinterpret_cast<MetroCloseFrameWindow>(
::GetProcAddress(base::win::GetMetroModule(), "CloseFrameWindow"));
@@ -2778,7 +2779,7 @@ void RenderWidgetHostViewWin::DoPopupOrFullscreenInit(HWND parent_hwnd,
MoveWindow(pos.x(), pos.y(), pos.width(), pos.height(), TRUE);
ShowWindow(IsActivatable() ? SW_SHOW : SW_SHOWNA);
- if (is_fullscreen_ && base::win::IsMetroProcess()) {
+ if (is_fullscreen_ && win8::IsSingleWindowMetroMode()) {
MetroSetFrameWindow set_frame_window =
reinterpret_cast<MetroSetFrameWindow>(
::GetProcAddress(base::win::GetMetroModule(), "SetFrameWindow"));
« no previous file with comments | « content/browser/DEPS ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698