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

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

Issue 2865953002: Move more users of WebLocalFrameImpl to WebLocalFrameBase. (Closed)
Patch Set: Convert DedicatedWorkerMessagingProxyProviderImpl to use WebLocalFrameBase. 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/WebAXObject.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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // WebPluginContainerImpl that hosts the plugin. 353 // WebPluginContainerImpl that hosts the plugin.
354 static WebPluginContainerImpl* PluginContainerFromFrame(LocalFrame*); 354 static WebPluginContainerImpl* PluginContainerFromFrame(LocalFrame*);
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; 363 WebViewBase* ViewImpl() const override;
364 364
365 FrameView* GetFrameView() const { 365 FrameView* GetFrameView() const {
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
(...skipping 10 matching lines...) Expand all
384 void SetFindEndstateFocusAndSelection(); 384 void SetFindEndstateFocusAndSelection();
385 385
386 void DidFail(const ResourceError&, bool was_provisional, HistoryCommitType); 386 void DidFail(const ResourceError&, bool was_provisional, HistoryCommitType);
387 void DidFinish(); 387 void DidFinish();
388 388
389 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. 389 // Sets whether the WebLocalFrameImpl allows its document to be scrolled.
390 // If the parameter is true, allow the document to be scrolled. 390 // If the parameter is true, allow the document to be scrolled.
391 // Otherwise, disallow scrolling. 391 // Otherwise, disallow scrolling.
392 void SetCanHaveScrollbars(bool) override; 392 void SetCanHaveScrollbars(bool) override;
393 393
394 WebFrameClient* Client() const { return client_; } 394 WebFrameClient* Client() const override { return client_; }
395 void SetClient(WebFrameClient* client) { client_ = client; } 395 void SetClient(WebFrameClient* client) { client_ = client; }
396 396
397 ContentSettingsClient& GetContentSettingsClient() { 397 ContentSettingsClient& GetContentSettingsClient() {
398 return content_settings_client_; 398 return content_settings_client_;
399 } 399 }
400 400
401 SharedWorkerRepositoryClientImpl* SharedWorkerRepositoryClient() const { 401 SharedWorkerRepositoryClientImpl* SharedWorkerRepositoryClient() const {
402 return shared_worker_repository_client_.get(); 402 return shared_worker_repository_client_.get();
403 } 403 }
404 404
405 void SetInputEventsTransformForEmulation(const IntSize&, float); 405 void SetInputEventsTransformForEmulation(const IntSize&, float);
406 406
407 static void SelectWordAroundPosition(LocalFrame*, VisiblePosition); 407 static void SelectWordAroundPosition(LocalFrame*, VisiblePosition);
408 408
409 TextCheckerClient& GetTextCheckerClient() const; 409 TextCheckerClient& GetTextCheckerClient() const;
410 WebTextCheckClient* TextCheckClient() const { return text_check_client_; } 410 WebTextCheckClient* TextCheckClient() const override {
411 return text_check_client_;
412 }
411 413
412 TextFinder* GetTextFinder() const; 414 TextFinder* GetTextFinder() const;
413 // Returns the text finder object if it already exists. 415 // Returns the text finder object if it already exists.
414 // Otherwise creates it and then returns. 416 // Otherwise creates it and then returns.
415 TextFinder& EnsureTextFinder(); 417 TextFinder& EnsureTextFinder();
416 418
417 // Returns a hit-tested VisiblePosition for the given point 419 // Returns a hit-tested VisiblePosition for the given point
418 VisiblePosition VisiblePositionForViewportPoint(const WebPoint&); 420 VisiblePosition VisiblePositionForViewportPoint(const WebPoint&);
419 421
420 void SetFrameWidget(WebFrameWidgetBase*); 422 void SetFrameWidget(WebFrameWidgetBase*);
421 423
422 // DevTools front-end bindings. 424 // DevTools front-end bindings.
423 void SetDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { 425 void SetDevToolsFrontend(WebDevToolsFrontendImpl* frontend) {
424 web_dev_tools_frontend_ = frontend; 426 web_dev_tools_frontend_ = frontend;
425 } 427 }
426 WebDevToolsFrontendImpl* DevToolsFrontend() { 428 WebDevToolsFrontendImpl* DevToolsFrontend() {
427 return web_dev_tools_frontend_; 429 return web_dev_tools_frontend_;
428 } 430 }
429 431
430 WebNode ContextMenuNode() const { return context_menu_node_.Get(); } 432 WebNode ContextMenuNode() const { return context_menu_node_.Get(); }
431 void SetContextMenuNode(Node* node) { context_menu_node_ = node; } 433 void SetContextMenuNode(Node* node) override { context_menu_node_ = node; }
432 void ClearContextMenuNode() { context_menu_node_.Clear(); } 434 void ClearContextMenuNode() override { context_menu_node_.Clear(); }
433 435
434 DECLARE_TRACE(); 436 DECLARE_TRACE();
435 437
436 private: 438 private:
437 friend class LocalFrameClientImpl; 439 friend class LocalFrameClientImpl;
438 440
439 WebLocalFrameImpl(WebTreeScopeType, 441 WebLocalFrameImpl(WebTreeScopeType,
440 WebFrameClient*, 442 WebFrameClient*,
441 blink::InterfaceProvider*, 443 blink::InterfaceProvider*,
442 blink::InterfaceRegistry*); 444 blink::InterfaceRegistry*);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 521
520 DEFINE_TYPE_CASTS(WebLocalFrameImpl, 522 DEFINE_TYPE_CASTS(WebLocalFrameImpl,
521 WebFrame, 523 WebFrame,
522 frame, 524 frame,
523 frame->IsWebLocalFrame(), 525 frame->IsWebLocalFrame(),
524 frame.IsWebLocalFrame()); 526 frame.IsWebLocalFrame());
525 527
526 } // namespace blink 528 } // namespace blink
527 529
528 #endif 530 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698