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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 2878153002: Fixed some edit commands for OOPIF-<webivew> (Mac) (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 // Returns the TextSelection information for the active widget. If 481 // Returns the TextSelection information for the active widget. If
482 // |is_guest_view_hack_| is true, then it will return the TextSelection 482 // |is_guest_view_hack_| is true, then it will return the TextSelection
483 // information for this RenderWidgetHostViewMac (which is serving as a 483 // information for this RenderWidgetHostViewMac (which is serving as a
484 // platform view for a guest). 484 // platform view for a guest).
485 const TextInputManager::TextSelection* GetTextSelection(); 485 const TextInputManager::TextSelection* GetTextSelection();
486 486
487 // Get the focused view that should be used for retrieving the text selection. 487 // Get the focused view that should be used for retrieving the text selection.
488 RenderWidgetHostViewBase* GetFocusedViewForTextSelection(); 488 RenderWidgetHostViewBase* GetFocusedViewForTextSelection();
489 489
490 // Returns the RenderWidgetHostDelegate corresponding to the currently focused
491 // RenderWidgetHost. It is different from |render_widget_host_->delegate()|
492 // when there are focused inner WebContentses on the page.
Charlie Reis 2017/05/15 21:36:57 Might mention it's null if there are no focused wi
EhsanK 2017/05/16 04:34:32 Yes. Done (fallback idea). Thanks! But still, even
493 RenderWidgetHostDelegate* GetFocusedRenderWidgetHostDelegate();
494
490 private: 495 private:
491 friend class RenderWidgetHostViewMacTest; 496 friend class RenderWidgetHostViewMacTest;
492 497
493 // Returns whether this render view is a popup (autocomplete window). 498 // Returns whether this render view is a popup (autocomplete window).
494 bool IsPopup() const; 499 bool IsPopup() const;
495 500
496 // Shuts down the render_widget_host_. This is a separate function so we can 501 // Shuts down the render_widget_host_. This is a separate function so we can
497 // invoke it from the message loop. 502 // invoke it from the message loop.
498 void ShutdownHost(); 503 void ShutdownHost();
499 504
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 564
560 // Factory used to safely scope delayed calls to ShutdownHost(). 565 // Factory used to safely scope delayed calls to ShutdownHost().
561 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 566 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
562 567
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 568 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
564 }; 569 };
565 570
566 } // namespace content 571 } // namespace content
567 572
568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698