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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's 5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's
6 // embedder that are not directed at any particular existing guest process. 6 // embedder that are not directed at any particular existing guest process.
7 // In the beginning, when a BrowserPlugin instance in the embedder renderer 7 // In the beginning, when a BrowserPlugin instance in the embedder renderer
8 // process requests an initial navigation, the WebContents for that renderer 8 // process requests an initial navigation, the WebContents for that renderer
9 // renderer creates a BrowserPluginEmbedder for itself. The 9 // renderer creates a BrowserPluginEmbedder for itself. The
10 // BrowserPluginEmbedder, in turn, forwards the requests to a 10 // BrowserPluginEmbedder, in turn, forwards the requests to a
(...skipping 21 matching lines...) Expand all
32 namespace content { 32 namespace content {
33 33
34 class BrowserPluginGuest; 34 class BrowserPluginGuest;
35 class BrowserPluginGuestManager; 35 class BrowserPluginGuestManager;
36 class RenderWidgetHostImpl; 36 class RenderWidgetHostImpl;
37 class WebContentsImpl; 37 class WebContentsImpl;
38 struct NativeWebKeyboardEvent; 38 struct NativeWebKeyboardEvent;
39 39
40 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { 40 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
41 public: 41 public:
42 virtual ~BrowserPluginEmbedder(); 42 ~BrowserPluginEmbedder() override;
43 43
44 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); 44 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents);
45 45
46 // Returns this embedder's WebContentsImpl. 46 // Returns this embedder's WebContentsImpl.
47 WebContentsImpl* GetWebContents() const; 47 WebContentsImpl* GetWebContents() const;
48 48
49 // Called when embedder's |rwh| has sent screen rects to renderer. 49 // Called when embedder's |rwh| has sent screen rects to renderer.
50 void DidSendScreenRects(); 50 void DidSendScreenRects();
51 51
52 // WebContentsObserver implementation. 52 // WebContentsObserver implementation.
53 virtual bool OnMessageReceived(const IPC::Message& message) override; 53 bool OnMessageReceived(const IPC::Message& message) override;
54 54
55 void DragSourceEndedAt(int client_x, int client_y, int screen_x, 55 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
56 int screen_y, blink::WebDragOperation operation); 56 int screen_y, blink::WebDragOperation operation);
57 57
58 void OnUpdateDragCursor(bool* handled); 58 void OnUpdateDragCursor(bool* handled);
59 59
60 void DragEnteredGuest(BrowserPluginGuest* guest); 60 void DragEnteredGuest(BrowserPluginGuest* guest);
61 61
62 void DragLeftGuest(BrowserPluginGuest* guest); 62 void DragLeftGuest(BrowserPluginGuest* guest);
63 63
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool guest_drag_ending_; 114 bool guest_drag_ending_;
115 115
116 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; 116 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 118 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
119 }; 119 };
120 120
121 } // namespace content 121 } // namespace content
122 122
123 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 123 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698