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

Side by Side Diff: chrome/renderer/render_view.h

Issue 3129003: remove toolstrips (Closed)
Patch Set: merge Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 // Locates a sub frame with given xpath 919 // Locates a sub frame with given xpath
920 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; 920 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const;
921 921
922 // Should only be called if this object wraps a PluginDocument. 922 // Should only be called if this object wraps a PluginDocument.
923 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); 923 WebKit::WebPlugin* GetWebPluginFromPluginDocument();
924 924
925 // Decodes a data: URL image or returns an empty image in case of failure. 925 // Decodes a data: URL image or returns an empty image in case of failure.
926 SkBitmap ImageFromDataUrl(const GURL&) const; 926 SkBitmap ImageFromDataUrl(const GURL&) const;
927 927
928 // Inject toolstrip CSS for extension moles and toolstrips.
929 void InjectToolstripCSS();
930
931 // Inserts a string of CSS in a particular frame. |id| can be specified to 928 // Inserts a string of CSS in a particular frame. |id| can be specified to
932 // give the CSS style element an id, and (if specified) will replace the 929 // give the CSS style element an id, and (if specified) will replace the
933 // element with the same id. 930 // element with the same id.
934 void InsertCSS(const std::wstring& frame_xpath, 931 void InsertCSS(const std::wstring& frame_xpath,
935 const std::string& css, 932 const std::string& css,
936 const std::string& id); 933 const std::string& id);
937 934
938 // Returns false unless this is a top-level navigation that crosses origins. 935 // Returns false unless this is a top-level navigation that crosses origins.
939 bool IsNonLocalTopLevelNavigation(const GURL& url, 936 bool IsNonLocalTopLevelNavigation(const GURL& url,
940 WebKit::WebFrame* frame, 937 WebKit::WebFrame* frame,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 GURL pending_target_url_; 1146 GURL pending_target_url_;
1150 1147
1151 // True if the browser is showing the spelling panel for us. 1148 // True if the browser is showing the spelling panel for us.
1152 bool spelling_panel_visible_; 1149 bool spelling_panel_visible_;
1153 1150
1154 // The text selection the last time DidChangeSelection got called. 1151 // The text selection the last time DidChangeSelection got called.
1155 std::string last_selection_; 1152 std::string last_selection_;
1156 1153
1157 // View ---------------------------------------------------------------------- 1154 // View ----------------------------------------------------------------------
1158 1155
1159 // Type of view attached with RenderView, it could be INVALID, TAB_CONTENTS, 1156 // Type of view attached with RenderView. See view_types.h
1160 // EXTENSION_TOOLSTRIP, EXTENSION_BACKGROUND_PAGE, DEV_TOOLS_UI.
1161 ViewType::Type view_type_; 1157 ViewType::Type view_type_;
1162 1158
1163 // Id number of browser window which RenderView is attached to. This is used 1159 // Id number of browser window which RenderView is attached to. This is used
1164 // for extensions. 1160 // for extensions.
1165 int browser_window_id_; 1161 int browser_window_id_;
1166 1162
1167 // Cache the preferred size of the page in order to prevent sending the IPC 1163 // Cache the preferred size of the page in order to prevent sending the IPC
1168 // when layout() recomputes but doesn't actually change sizes. 1164 // when layout() recomputes but doesn't actually change sizes.
1169 gfx::Size preferred_size_; 1165 gfx::Size preferred_size_;
1170 1166
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1293 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1298 // sections rather than throwing it randomly at the end. If you're adding a 1294 // sections rather than throwing it randomly at the end. If you're adding a
1299 // bunch of stuff, you should probably create a helper class and put your 1295 // bunch of stuff, you should probably create a helper class and put your
1300 // data and methods on that to avoid bloating RenderView more. 1296 // data and methods on that to avoid bloating RenderView more.
1301 // --------------------------------------------------------------------------- 1297 // ---------------------------------------------------------------------------
1302 1298
1303 DISALLOW_COPY_AND_ASSIGN(RenderView); 1299 DISALLOW_COPY_AND_ASSIGN(RenderView);
1304 }; 1300 };
1305 1301
1306 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1302 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« 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