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

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

Issue 7206055: Add an option to run Chrome in the views desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 89890)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -18,6 +18,7 @@
#include "chrome/browser/accessibility/browser_accessibility_state.h"
#include "chrome/browser/accessibility/browser_accessibility_win.h"
#include "chrome/browser/browser_trial.h"
+#include "chrome/browser/renderer_host/render_widget_host_view_views.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/render_messages.h"
@@ -214,6 +215,8 @@
// static
RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
RenderWidgetHost* widget) {
+ if (views::Widget::IsPureViews())
+ return new RenderWidgetHostViewViews(widget);
return new RenderWidgetHostViewWin(widget);
}
@@ -1804,6 +1807,10 @@
RenderWidgetHostView*
RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
gfx::NativeView native_view) {
+ if (views::Widget::IsPureViews()) {
+ // TODO(beng): Figure out what to do for Windows/v.o.v.
+ return NULL;
+ }
return ::IsWindow(native_view) ?
reinterpret_cast<RenderWidgetHostView*>(
ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL;
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_views_win.cc ('k') | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698