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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2867073005: Provide downcasts for WebLocalFrameBase using DEFINE_TYPE_CASTS macro. (Closed)
Patch Set: Created 3 years, 7 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 | « third_party/WebKit/Source/web/WebFrameWidgetBase.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 base::SingleThreadTaskRunner* TimerTaskRunner() override; 313 base::SingleThreadTaskRunner* TimerTaskRunner() override;
314 base::SingleThreadTaskRunner* LoadingTaskRunner() override; 314 base::SingleThreadTaskRunner* LoadingTaskRunner() override;
315 base::SingleThreadTaskRunner* UnthrottledTaskRunner() override; 315 base::SingleThreadTaskRunner* UnthrottledTaskRunner() override;
316 WebInputMethodControllerImpl* GetInputMethodController() const override; 316 WebInputMethodControllerImpl* GetInputMethodController() const override;
317 317
318 void ExtractSmartClipData(WebRect rect_in_viewport, 318 void ExtractSmartClipData(WebRect rect_in_viewport,
319 WebString& clip_text, 319 WebString& clip_text,
320 WebString& clip_html) override; 320 WebString& clip_html) override;
321 321
322 void InitializeCoreFrame(Page&, FrameOwner*, const AtomicString& name); 322 void InitializeCoreFrame(Page&, FrameOwner*, const AtomicString& name);
323 LocalFrame* GetFrame() const { return frame_.Get(); } 323 LocalFrame* GetFrame() const override { return frame_.Get(); }
324 324
325 void WillBeDetached(); 325 void WillBeDetached();
326 void WillDetachParent(); 326 void WillDetachParent();
327 327
328 static WebLocalFrameImpl* Create(WebTreeScopeType, 328 static WebLocalFrameImpl* Create(WebTreeScopeType,
329 WebFrameClient*, 329 WebFrameClient*,
330 blink::InterfaceProvider*, 330 blink::InterfaceProvider*,
331 blink::InterfaceRegistry*, 331 blink::InterfaceRegistry*,
332 WebFrame* opener); 332 WebFrame* opener);
333 static WebLocalFrameImpl* CreateProvisional(WebFrameClient*, 333 static WebLocalFrameImpl* CreateProvisional(WebFrameClient*,
(...skipping 21 matching lines...) Expand all
355 355
356 // If the frame hosts a PluginDocument, this method returns the 356 // If the frame hosts a PluginDocument, this method returns the
357 // WebPluginContainerImpl that hosts the plugin. If the provided node is a 357 // WebPluginContainerImpl that hosts the plugin. If the provided node is a
358 // plugin, then it runs its WebPluginContainerImpl. Otherwise, uses the 358 // plugin, then it runs its WebPluginContainerImpl. Otherwise, uses the
359 // currently focused element (if any). 359 // currently focused element (if any).
360 static WebPluginContainerImpl* CurrentPluginContainer(LocalFrame*, 360 static WebPluginContainerImpl* CurrentPluginContainer(LocalFrame*,
361 Node* = nullptr); 361 Node* = nullptr);
362 362
363 WebViewBase* ViewImpl() const override; 363 WebViewBase* ViewImpl() const override;
364 364
365 FrameView* GetFrameView() const { 365 FrameView* GetFrameView() const override {
366 return GetFrame() ? GetFrame()->View() : 0; 366 return GetFrame() ? GetFrame()->View() : 0;
367 } 367 }
368 368
369 WebDevToolsAgentImpl* DevToolsAgentImpl() const { 369 WebDevToolsAgentImpl* DevToolsAgentImpl() const {
370 return dev_tools_agent_.Get(); 370 return dev_tools_agent_.Get();
371 } 371 }
372 372
373 // Getters for the impls corresponding to Get(Provisional)DataSource. They 373 // Getters for the impls corresponding to Get(Provisional)DataSource. They
374 // may return 0 if there is no corresponding data source. 374 // may return 0 if there is no corresponding data source.
375 WebDataSourceImpl* DataSourceImpl() const; 375 WebDataSourceImpl* DataSourceImpl() const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 DEFINE_TYPE_CASTS(WebLocalFrameImpl, 522 DEFINE_TYPE_CASTS(WebLocalFrameImpl,
523 WebFrame, 523 WebFrame,
524 frame, 524 frame,
525 frame->IsWebLocalFrame(), 525 frame->IsWebLocalFrame(),
526 frame.IsWebLocalFrame()); 526 frame.IsWebLocalFrame());
527 527
528 } // namespace blink 528 } // namespace blink
529 529
530 #endif 530 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698