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

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

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // Gets the focused element. If no such element exists then the element will 492 // Gets the focused element. If no such element exists then the element will
493 // be NULL. 493 // be NULL.
494 blink::WebElement GetFocusedElement(); 494 blink::WebElement GetFocusedElement();
495 495
496 // IPC message handlers ------------------------------------------------------ 496 // IPC message handlers ------------------------------------------------------
497 // 497 //
498 // The documentation for these functions should be in 498 // The documentation for these functions should be in
499 // content/common/*_messages.h for the message that the function is handling. 499 // content/common/*_messages.h for the message that the function is handling.
500 void OnBeforeUnload(); 500 void OnBeforeUnload();
501 void OnSwapOut(int proxy_routing_id); 501 void OnSwapOut(int proxy_routing_id);
502 void OnNewWidgetForFrame(int routing_id_for_widget, bool hidden);
502 void OnStop(); 503 void OnStop();
503 void OnShowContextMenu(const gfx::Point& location); 504 void OnShowContextMenu(const gfx::Point& location);
504 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 505 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
505 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 506 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
506 unsigned action); 507 unsigned action);
507 void OnUndo(); 508 void OnUndo();
508 void OnRedo(); 509 void OnRedo();
509 void OnCut(); 510 void OnCut();
510 void OnCopy(); 511 void OnCopy();
511 void OnPaste(); 512 void OnPaste();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 632
632 base::WeakPtr<RenderViewImpl> render_view_; 633 base::WeakPtr<RenderViewImpl> render_view_;
633 int routing_id_; 634 int routing_id_;
634 bool is_swapped_out_; 635 bool is_swapped_out_;
635 // RenderFrameProxy exists only when is_swapped_out_ is true. 636 // RenderFrameProxy exists only when is_swapped_out_ is true.
636 // TODO(nasko): This can be removed once we don't have a swapped out state on 637 // TODO(nasko): This can be removed once we don't have a swapped out state on
637 // RenderFrame. See https://crbug.com/357747. 638 // RenderFrame. See https://crbug.com/357747.
638 RenderFrameProxy* render_frame_proxy_; 639 RenderFrameProxy* render_frame_proxy_;
639 bool is_detaching_; 640 bool is_detaching_;
640 641
642 // Used when the RenderFrame is a root of a subtree of local frames.
nasko 2014/10/01 16:37:14 nit: the subtree needn't all be local frames, righ
kenrb 2014/10/01 19:27:51 Okay. Changed 'subtree' to 'connected subtree'.
643 scoped_refptr<RenderWidget> render_widget_;
644
641 #if defined(ENABLE_PLUGINS) 645 #if defined(ENABLE_PLUGINS)
642 // Current text input composition text. Empty if no composition is in 646 // Current text input composition text. Empty if no composition is in
643 // progress. 647 // progress.
644 base::string16 pepper_composition_text_; 648 base::string16 pepper_composition_text_;
645 #endif 649 #endif
646 650
647 RendererWebCookieJarImpl cookie_jar_; 651 RendererWebCookieJarImpl cookie_jar_;
648 652
649 // All the registered observers. 653 // All the registered observers.
650 ObserverList<RenderFrameObserver> observers_; 654 ObserverList<RenderFrameObserver> observers_;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 #endif 752 #endif
749 753
750 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 754 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
751 755
752 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 756 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
753 }; 757 };
754 758
755 } // namespace content 759 } // namespace content
756 760
757 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 761 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698