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

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

Issue 866633002: partial PageClickTracker migration to RenderFrameObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update spellcheker Created 5 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 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // IPC::Sender 283 // IPC::Sender
284 bool Send(IPC::Message* msg) override; 284 bool Send(IPC::Message* msg) override;
285 285
286 // IPC::Listener 286 // IPC::Listener
287 bool OnMessageReceived(const IPC::Message& msg) override; 287 bool OnMessageReceived(const IPC::Message& msg) override;
288 288
289 // RenderFrame implementation: 289 // RenderFrame implementation:
290 RenderView* GetRenderView() override; 290 RenderView* GetRenderView() override;
291 int GetRoutingID() override; 291 int GetRoutingID() override;
292 blink::WebLocalFrame* GetWebFrame() override; 292 blink::WebLocalFrame* GetWebFrame() override;
293 blink::WebElement GetFocusedElement() const override;
293 WebPreferences& GetWebkitPreferences() override; 294 WebPreferences& GetWebkitPreferences() override;
294 int ShowContextMenu(ContextMenuClient* client, 295 int ShowContextMenu(ContextMenuClient* client,
295 const ContextMenuParams& params) override; 296 const ContextMenuParams& params) override;
296 void CancelContextMenu(int request_id) override; 297 void CancelContextMenu(int request_id) override;
297 blink::WebNode GetContextMenuNode() const override; 298 blink::WebNode GetContextMenuNode() const override;
298 blink::WebPlugin* CreatePlugin( 299 blink::WebPlugin* CreatePlugin(
299 blink::WebFrame* frame, 300 blink::WebFrame* frame,
300 const WebPluginInfo& info, 301 const WebPluginInfo& info,
301 const blink::WebPluginParams& params, 302 const blink::WebPluginParams& params,
302 scoped_ptr<PluginInstanceThrottler> throttler) override; 303 scoped_ptr<PluginInstanceThrottler> throttler) override;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 565
565 typedef std::map<GURL, double> HostZoomLevels; 566 typedef std::map<GURL, double> HostZoomLevels;
566 567
567 // Functions to add and remove observers for this object. 568 // Functions to add and remove observers for this object.
568 void AddObserver(RenderFrameObserver* observer); 569 void AddObserver(RenderFrameObserver* observer);
569 void RemoveObserver(RenderFrameObserver* observer); 570 void RemoveObserver(RenderFrameObserver* observer);
570 571
571 // Builds and sends DidCommitProvisionalLoad to the host. 572 // Builds and sends DidCommitProvisionalLoad to the host.
572 void SendDidCommitProvisionalLoad(blink::WebFrame* frame); 573 void SendDidCommitProvisionalLoad(blink::WebFrame* frame);
573 574
574 // Gets the focused element. If no such element exists then the element will
575 // be NULL.
576 blink::WebElement GetFocusedElement();
577
578 // IPC message handlers ------------------------------------------------------ 575 // IPC message handlers ------------------------------------------------------
579 // 576 //
580 // The documentation for these functions should be in 577 // The documentation for these functions should be in
581 // content/common/*_messages.h for the message that the function is handling. 578 // content/common/*_messages.h for the message that the function is handling.
582 void OnBeforeUnload(); 579 void OnBeforeUnload();
583 void OnSwapOut(int proxy_routing_id, 580 void OnSwapOut(int proxy_routing_id,
584 bool is_loading, 581 bool is_loading,
585 const FrameReplicationState& replicated_frame_state); 582 const FrameReplicationState& replicated_frame_state);
586 void OnStop(); 583 void OnStop();
587 void OnShowContextMenu(const gfx::Point& location); 584 void OnShowContextMenu(const gfx::Point& location);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 #endif 865 #endif
869 866
870 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 867 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
871 868
872 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 869 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
873 }; 870 };
874 871
875 } // namespace content 872 } // namespace content
876 873
877 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 874 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698