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

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

Issue 2886113002: Introduce WebPluginContainerBase to abstract WebPluginContainerImpl. (Closed)
Patch Set: Rebase 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 struct WebAssociatedURLLoaderOptions; 63 struct WebAssociatedURLLoaderOptions;
64 class WebAutofillClient; 64 class WebAutofillClient;
65 class WebDataSourceImpl; 65 class WebDataSourceImpl;
66 class WebDevToolsAgentImpl; 66 class WebDevToolsAgentImpl;
67 class WebDevToolsFrontendImpl; 67 class WebDevToolsFrontendImpl;
68 class WebFrameClient; 68 class WebFrameClient;
69 class WebInputMethodControllerImpl; 69 class WebInputMethodControllerImpl;
70 class WebNode; 70 class WebNode;
71 class WebPerformance; 71 class WebPerformance;
72 class WebPlugin; 72 class WebPlugin;
73 class WebPluginContainerImpl; 73 class WebPluginContainerBase;
74 class WebScriptExecutionCallback; 74 class WebScriptExecutionCallback;
75 class WebView; 75 class WebView;
76 class WebViewBase; 76 class WebViewBase;
77 enum class WebFrameLoadType; 77 enum class WebFrameLoadType;
78 struct FrameLoadRequest; 78 struct FrameLoadRequest;
79 struct WebContentSecurityPolicyViolation; 79 struct WebContentSecurityPolicyViolation;
80 struct WebPrintParams; 80 struct WebPrintParams;
81 81
82 template <typename T> 82 template <typename T>
83 class WebVector; 83 class WebVector;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 void DidChangeContentsSize(const IntSize&); 346 void DidChangeContentsSize(const IntSize&);
347 347
348 void CreateFrameView() override; 348 void CreateFrameView() override;
349 349
350 static WebLocalFrameImpl* FromFrame(LocalFrame*); 350 static WebLocalFrameImpl* FromFrame(LocalFrame*);
351 static WebLocalFrameImpl* FromFrame(LocalFrame&); 351 static WebLocalFrameImpl* FromFrame(LocalFrame&);
352 static WebLocalFrameImpl* FromFrameOwnerElement(Element*); 352 static WebLocalFrameImpl* FromFrameOwnerElement(Element*);
353 353
354 // If the frame hosts a PluginDocument, this method returns the 354 // If the frame hosts a PluginDocument, this method returns the
355 // WebPluginContainerImpl that hosts the plugin. 355 // WebPluginContainerBase that hosts the plugin.
356 static WebPluginContainerImpl* PluginContainerFromFrame(LocalFrame*); 356 static WebPluginContainerBase* PluginContainerFromFrame(LocalFrame*);
357 357
358 // If the frame hosts a PluginDocument, this method returns the 358 // If the frame hosts a PluginDocument, this method returns the
359 // WebPluginContainerImpl that hosts the plugin. If the provided node is a 359 // WebPluginContainerBase that hosts the plugin. If the provided node is a
360 // plugin, then it runs its WebPluginContainerImpl. Otherwise, uses the 360 // plugin, then it runs its WebPluginContainerBase. Otherwise, uses the
361 // currently focused element (if any). 361 // currently focused element (if any).
362 static WebPluginContainerImpl* CurrentPluginContainer(LocalFrame*, 362 static WebPluginContainerBase* CurrentPluginContainer(LocalFrame*,
363 Node* = nullptr); 363 Node* = nullptr);
364 364
365 WebViewBase* ViewImpl() const override; 365 WebViewBase* ViewImpl() const override;
366 366
367 FrameView* GetFrameView() const override { 367 FrameView* GetFrameView() const override {
368 return GetFrame() ? GetFrame()->View() : 0; 368 return GetFrame() ? GetFrame()->View() : 0;
369 } 369 }
370 370
371 WebDevToolsAgentImpl* DevToolsAgentImpl() const override { 371 WebDevToolsAgentImpl* DevToolsAgentImpl() const override {
372 return dev_tools_agent_.Get(); 372 return dev_tools_agent_.Get();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 DEFINE_TYPE_CASTS(WebLocalFrameImpl, 529 DEFINE_TYPE_CASTS(WebLocalFrameImpl,
530 WebFrame, 530 WebFrame,
531 frame, 531 frame,
532 frame->IsWebLocalFrame(), 532 frame->IsWebLocalFrame(),
533 frame.IsWebLocalFrame()); 533 frame.IsWebLocalFrame());
534 534
535 } // namespace blink 535 } // namespace blink
536 536
537 #endif 537 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698