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

Unified Diff: content/browser/renderer_host/render_view_host_factory.h

Issue 1602903003: Display the context menu on Windows on long press release (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 11 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 | « no previous file | content/browser/renderer_host/render_view_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_factory.h
diff --git a/content/browser/renderer_host/render_view_host_factory.h b/content/browser/renderer_host/render_view_host_factory.h
index 62b23900d6ae1219c5ceddc3b9f1fc4b7f9bda4e..a6f7dd5e6ce6b1257e79194f942c473167b1bbe1 100644
--- a/content/browser/renderer_host/render_view_host_factory.h
+++ b/content/browser/renderer_host/render_view_host_factory.h
@@ -39,6 +39,18 @@ class RenderViewHostFactory {
return !!factory_;
}
+ // Returns true if the RenderViewHost instance is not a test instance.
+ CONTENT_EXPORT static bool is_real_render_view_host() {
+ return is_real_render_view_host_;
+ }
+
+ // Sets the is_real_render_view_host flag which indicates that the
+ // RenderViewHost instance is not a test instance.
+ CONTENT_EXPORT static void set_is_real_render_view_host(
+ bool is_real_render_view_host) {
+ is_real_render_view_host_ = is_real_render_view_host;
+ }
+
protected:
RenderViewHostFactory() {}
virtual ~RenderViewHostFactory() {}
@@ -67,6 +79,10 @@ class RenderViewHostFactory {
// create the default RenderViewHosts.
CONTENT_EXPORT static RenderViewHostFactory* factory_;
+ // Set to true if the RenderViewHost is not a test instance. Defaults to
+ // false.
+ CONTENT_EXPORT static bool is_real_render_view_host_;
+
DISALLOW_COPY_AND_ASSIGN(RenderViewHostFactory);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698