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

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

Issue 183923030: Almost finish moving context_menu_node_ from RenderViewImpl to RenderFrameImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 ShouldUpdateSelectionTextFromContextMenuParams); 342 ShouldUpdateSelectionTextFromContextMenuParams);
343 343
344 typedef std::map<GURL, double> HostZoomLevels; 344 typedef std::map<GURL, double> HostZoomLevels;
345 345
346 // Functions to add and remove observers for this object. 346 // Functions to add and remove observers for this object.
347 void AddObserver(RenderFrameObserver* observer); 347 void AddObserver(RenderFrameObserver* observer);
348 void RemoveObserver(RenderFrameObserver* observer); 348 void RemoveObserver(RenderFrameObserver* observer);
349 349
350 void UpdateURL(blink::WebFrame* frame); 350 void UpdateURL(blink::WebFrame* frame);
351 351
352 // Gets the focused element. If no such element exists then the element will
353 // be Null.
nasko 2014/03/05 21:50:47 nit: null or NULL
jam 2014/03/06 00:59:37 Done.
354 blink::WebElement GetFocusedElement();
355
352 // IPC message handlers ------------------------------------------------------ 356 // IPC message handlers ------------------------------------------------------
353 // 357 //
354 // The documentation for these functions should be in 358 // The documentation for these functions should be in
355 // content/common/*_messages.h for the message that the function is handling. 359 // content/common/*_messages.h for the message that the function is handling.
356 void OnSwapOut(); 360 void OnSwapOut();
357 void OnChildFrameProcessGone(); 361 void OnChildFrameProcessGone();
358 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); 362 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params);
359 void OnCompositorFrameSwapped(const IPC::Message& message); 363 void OnCompositorFrameSwapped(const IPC::Message& message);
360 void OnShowContextMenu(const gfx::Point& location); 364 void OnShowContextMenu(const gfx::Point& location);
361 void OnContextMenuClosed(const CustomContextMenuContext& custom_context); 365 void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
362 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context, 366 void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
363 unsigned action); 367 unsigned action);
368 void OnCut();
369 void OnCopy();
370 void OnPaste();
371
364 // Virtual since overridden by WebTestProxy for layout tests. 372 // Virtual since overridden by WebTestProxy for layout tests.
365 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 373 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
366 RenderFrame* render_frame, 374 RenderFrame* render_frame,
367 blink::WebFrame* frame, 375 blink::WebFrame* frame,
368 blink::WebDataSource::ExtraData* extraData, 376 blink::WebDataSource::ExtraData* extraData,
369 const blink::WebURLRequest& request, 377 const blink::WebURLRequest& request,
370 blink::WebNavigationType type, 378 blink::WebNavigationType type,
371 blink::WebNavigationPolicy default_policy, 379 blink::WebNavigationPolicy default_policy,
372 bool is_redirect); 380 bool is_redirect);
373 void OpenURL(blink::WebFrame* frame, 381 void OpenURL(blink::WebFrame* frame,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // always respond properly to the request, so we don't have to worry so 424 // always respond properly to the request, so we don't have to worry so
417 // much about leaks. 425 // much about leaks.
418 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; 426 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_;
419 427
420 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 428 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
421 }; 429 };
422 430
423 } // namespace content 431 } // namespace content
424 432
425 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 433 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698