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

Unified Diff: chrome/renderer/render_view.h

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 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/renderer/extensions/extension_process_bindings.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index ef29a81d2b90e16f2fa44243bd69a7288be081ba..d7781e2d382e9e4370363c6692b4761a0c604637 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -19,6 +19,7 @@
#include "build/build_config.h"
#include "chrome/common/id_map.h"
#include "chrome/common/renderer_preferences.h"
+#include "chrome/common/view_types.h"
#include "chrome/renderer/automation/dom_automation_controller.h"
#include "chrome/renderer/dom_ui_bindings.h"
#include "chrome/renderer/extensions/extension_process_bindings.h"
@@ -98,6 +99,9 @@ class RenderView : public RenderWidget,
public WebViewDelegate,
public webkit_glue::DomSerializerDelegate {
public:
+ struct RenderViewSet {
+ std::set<RenderView* > render_view_set_;
+ };
// Creates a new RenderView. The parent_hwnd specifies a HWND to use as the
// parent of the WebView HWND that will be created. The modal_dialog_event
// is set by the RenderView whenever a modal dialog alert is shown, so that
@@ -132,6 +136,14 @@ class RenderView : public RenderWidget,
return modal_dialog_event_.get();
}
+ int browser_window_id() {
+ return browser_window_id_;
+ }
+
+ ViewType::Type view_type() {
+ return view_type_;
+ }
+
// IPC::Channel::Listener
virtual void OnMessageReceived(const IPC::Message& msg);
@@ -543,6 +555,8 @@ class RenderView : public RenderWidget,
void OnMediaPlayerActionAt(int x,
int y,
const MediaPlayerAction& action);
+ void OnNotifyRendererViewType(ViewType::Type view_type);
+ void OnUpdateBrowserWindowId(int window_id);
void OnUpdateBackForwardListCount(int back_list_count,
int forward_list_count);
void OnGetAccessibilityInfo(
@@ -837,6 +851,13 @@ class RenderView : public RenderWidget,
RendererPreferences renderer_preferences_;
+ // Type of view attached with RenderView, it could be INVALID, TAB_CONTENTS,
+ // EXTENSION_TOOLSTRIP, EXTENSION_BACKGROUND_PAGE, DEV_TOOLS_UI.
+ ViewType::Type view_type_;
+
+ // Id number of browser window which RenderView is attached to.
+ int browser_window_id_;
+
// page id for the last navigation sent to the browser.
int32 last_top_level_navigation_page_id_;
« no previous file with comments | « chrome/renderer/extensions/extension_process_bindings.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698