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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 1565893004: Sets a transparent background for out-of-process subframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 4 years, 10 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
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // as that is only for changes that aren't initiated by the client. 234 // as that is only for changes that aren't initiated by the client.
235 void SetZoomLevel(double zoom_level); 235 void SetZoomLevel(double zoom_level);
236 236
237 // Indicates whether this page has been focused by the browser. 237 // Indicates whether this page has been focused by the browser.
238 bool has_focus() const { return has_focus_; } 238 bool has_focus() const { return has_focus_; }
239 239
240 // Sets page-level focus in this view and notifies plugins and Blink's 240 // Sets page-level focus in this view and notifies plugins and Blink's
241 // FocusController. 241 // FocusController.
242 void SetFocus(bool enable); 242 void SetFocus(bool enable);
243 243
244 void AttachWebFrameWidget(blink::WebWidget* frame_widget); 244 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget);
245 245
246 // Plugin-related functions -------------------------------------------------- 246 // Plugin-related functions --------------------------------------------------
247 247
248 #if defined(ENABLE_PLUGINS) 248 #if defined(ENABLE_PLUGINS)
249 PepperPluginInstanceImpl* focused_pepper_plugin() { 249 PepperPluginInstanceImpl* focused_pepper_plugin() {
250 return focused_pepper_plugin_; 250 return focused_pepper_plugin_;
251 } 251 }
252 PepperPluginInstanceImpl* pepper_last_mouse_event_target() { 252 PepperPluginInstanceImpl* pepper_last_mouse_event_target() {
253 return pepper_last_mouse_event_target_; 253 return pepper_last_mouse_event_target_;
254 } 254 }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // RenderView implementation ------------------------------------------------- 429 // RenderView implementation -------------------------------------------------
430 430
431 bool Send(IPC::Message* message) override; 431 bool Send(IPC::Message* message) override;
432 RenderFrameImpl* GetMainRenderFrame() override; 432 RenderFrameImpl* GetMainRenderFrame() override;
433 int GetRoutingID() const override; 433 int GetRoutingID() const override;
434 gfx::Size GetSize() const override; 434 gfx::Size GetSize() const override;
435 float GetDeviceScaleFactor() const override; 435 float GetDeviceScaleFactor() const override;
436 WebPreferences& GetWebkitPreferences() override; 436 WebPreferences& GetWebkitPreferences() override;
437 void SetWebkitPreferences(const WebPreferences& preferences) override; 437 void SetWebkitPreferences(const WebPreferences& preferences) override;
438 blink::WebView* GetWebView() override; 438 blink::WebView* GetWebView() override;
439 blink::WebFrameWidget* GetWebFrameWidget() override;
439 bool ShouldDisplayScrollbars(int width, int height) const override; 440 bool ShouldDisplayScrollbars(int width, int height) const override;
440 int GetEnabledBindings() const override; 441 int GetEnabledBindings() const override;
441 bool GetContentStateImmediately() const override; 442 bool GetContentStateImmediately() const override;
442 blink::WebPageVisibilityState GetVisibilityState() const override; 443 blink::WebPageVisibilityState GetVisibilityState() const override;
443 void DidStartLoading() override; 444 void DidStartLoading() override;
444 void DidStopLoading() override; 445 void DidStopLoading() override;
445 void Repaint(const gfx::Size& size) override; 446 void Repaint(const gfx::Size& size) override;
446 void SetEditCommandForNextKeyEvent(const std::string& name, 447 void SetEditCommandForNextKeyEvent(const std::string& name,
447 const std::string& value) override; 448 const std::string& value) override;
448 void ClearEditCommands() override; 449 void ClearEditCommands() override;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 // scrolled and focused editable node. 899 // scrolled and focused editable node.
899 bool has_scrolled_focused_editable_node_into_rect_; 900 bool has_scrolled_focused_editable_node_into_rect_;
900 gfx::Rect rect_for_scrolled_focused_editable_node_; 901 gfx::Rect rect_for_scrolled_focused_editable_node_;
901 902
902 // Helper objects ------------------------------------------------------------ 903 // Helper objects ------------------------------------------------------------
903 904
904 RenderFrameImpl* main_render_frame_; 905 RenderFrameImpl* main_render_frame_;
905 906
906 // Note: RenderViewImpl is pulling double duty: it's the RenderWidget for the 907 // Note: RenderViewImpl is pulling double duty: it's the RenderWidget for the
907 // "view", but it's also the RenderWidget for the main frame. 908 // "view", but it's also the RenderWidget for the main frame.
908 blink::WebWidget* frame_widget_; 909 blink::WebFrameWidget* frame_widget_;
909 910
910 // The next group of objects all implement RenderViewObserver, so are deleted 911 // The next group of objects all implement RenderViewObserver, so are deleted
911 // along with the RenderView automatically. This is why we just store 912 // along with the RenderView automatically. This is why we just store
912 // weak references. 913 // weak references.
913 914
914 // The speech recognition dispatcher attached to this view, lazily 915 // The speech recognition dispatcher attached to this view, lazily
915 // initialized. 916 // initialized.
916 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; 917 SpeechRecognitionDispatcher* speech_recognition_dispatcher_;
917 918
918 // Mouse Lock dispatcher attached to this view. 919 // Mouse Lock dispatcher attached to this view.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 // use the Observer interface to filter IPC messages and receive frame change 1015 // use the Observer interface to filter IPC messages and receive frame change
1015 // notifications. 1016 // notifications.
1016 // --------------------------------------------------------------------------- 1017 // ---------------------------------------------------------------------------
1017 1018
1018 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1019 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1019 }; 1020 };
1020 1021
1021 } // namespace content 1022 } // namespace content
1022 1023
1023 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1024 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698