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

Unified Diff: chrome/browser/extensions/extension_host.cc

Issue 115914: Fixing more bustage by ifdefing out Windows-only code.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 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/browser/extensions/extension_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_host.cc
===================================================================
--- chrome/browser/extensions/extension_host.cc (revision 17161)
+++ chrome/browser/extensions/extension_host.cc (working copy)
@@ -29,7 +29,11 @@
#include "webkit/glue/context_menu.h"
ExtensionHost::ExtensionHost(Extension* extension, SiteInstance* site_instance)
- : extension_(extension), view_(NULL), did_stop_loading_(false) {
+ : extension_(extension),
+#if defined(OS_WIN)
+ view_(NULL),
+#endif
+ did_stop_loading_(false) {
render_view_host_ = new RenderViewHost(
site_instance, this, MSG_ROUTING_NONE, NULL);
render_view_host_->AllowExtensionBindings();
@@ -52,8 +56,10 @@
}
void ExtensionHost::UpdatePreferredWidth(int pref_width) {
+#if defined(OS_WIN)
if (view_)
view_->DidContentsPreferredWidthChange(pref_width);
+#endif
}
WebPreferences ExtensionHost::GetWebkitPrefs() {
@@ -86,8 +92,10 @@
render_view_host->WasResized();
did_stop_loading_ = true;
+#if defined(OS_WIN)
if (view_)
view_->ShowIfCompletelyLoaded();
+#endif
}
ExtensionFunctionDispatcher* ExtensionHost::
@@ -158,18 +166,24 @@
}
void ExtensionHost::HandleMouseEvent() {
+#if defined(OS_WIN)
if (view_)
view_->HandleMouseEvent();
+#endif
}
void ExtensionHost::HandleMouseLeave() {
+#if defined(OS_WIN)
if (view_)
view_->HandleMouseLeave();
+#endif
}
Browser* ExtensionHost::GetBrowser() {
+#if defined(OS_WIN)
if (view_)
return view_->browser();
+#endif
Browser* browser = BrowserList::GetLastActiveWithProfile(
render_view_host()->process()->profile());
// TODO(mpcomplete): what this verifies doesn't actually happen yet.
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698