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

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: removing background override 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
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 // scrolled and focused editable node. 902 // scrolled and focused editable node.
902 bool has_scrolled_focused_editable_node_into_rect_; 903 bool has_scrolled_focused_editable_node_into_rect_;
903 gfx::Rect rect_for_scrolled_focused_editable_node_; 904 gfx::Rect rect_for_scrolled_focused_editable_node_;
904 905
905 // Helper objects ------------------------------------------------------------ 906 // Helper objects ------------------------------------------------------------
906 907
907 RenderFrameImpl* main_render_frame_; 908 RenderFrameImpl* main_render_frame_;
908 909
909 // Note: RenderViewImpl is pulling double duty: it's the RenderWidget for the 910 // Note: RenderViewImpl is pulling double duty: it's the RenderWidget for the
910 // "view", but it's also the RenderWidget for the main frame. 911 // "view", but it's also the RenderWidget for the main frame.
911 blink::WebWidget* frame_widget_; 912 blink::WebFrameWidget* frame_widget_;
912 913
913 // The next group of objects all implement RenderViewObserver, so are deleted 914 // The next group of objects all implement RenderViewObserver, so are deleted
914 // along with the RenderView automatically. This is why we just store 915 // along with the RenderView automatically. This is why we just store
915 // weak references. 916 // weak references.
916 917
917 // The speech recognition dispatcher attached to this view, lazily 918 // The speech recognition dispatcher attached to this view, lazily
918 // initialized. 919 // initialized.
919 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; 920 SpeechRecognitionDispatcher* speech_recognition_dispatcher_;
920 921
921 // Mouse Lock dispatcher attached to this view. 922 // Mouse Lock dispatcher attached to this view.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // use the Observer interface to filter IPC messages and receive frame change 1018 // use the Observer interface to filter IPC messages and receive frame change
1018 // notifications. 1019 // notifications.
1019 // --------------------------------------------------------------------------- 1020 // ---------------------------------------------------------------------------
1020 1021
1021 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1022 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1022 }; 1023 };
1023 1024
1024 } // namespace content 1025 } // namespace content
1025 1026
1026 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1027 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698