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

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

Issue 303423002: Browser Plugin: Remove Zoom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Called when embedder's |rwh| has sent screen rects to renderer. 50 // Called when embedder's |rwh| has sent screen rects to renderer.
51 void DidSendScreenRects(); 51 void DidSendScreenRects();
52 52
53 // Overrides factory for testing. Default (NULL) value indicates regular 53 // Overrides factory for testing. Default (NULL) value indicates regular
54 // (non-test) environment. 54 // (non-test) environment.
55 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { 55 static void set_factory_for_testing(BrowserPluginHostFactory* factory) {
56 factory_ = factory; 56 factory_ = factory;
57 } 57 }
58 58
59 // Sets the zoom level for all guests within this embedder.
60 void SetZoomLevel(double level);
61
62 // WebContentsObserver implementation. 59 // WebContentsObserver implementation.
63 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
64 61
65 void DragSourceEndedAt(int client_x, int client_y, int screen_x, 62 void DragSourceEndedAt(int client_x, int client_y, int screen_x,
66 int screen_y, blink::WebDragOperation operation); 63 int screen_y, blink::WebDragOperation operation);
67 64
68 void OnUpdateDragCursor(bool* handled); 65 void OnUpdateDragCursor(bool* handled);
69 66
70 void DragEnteredGuest(BrowserPluginGuest* guest); 67 void DragEnteredGuest(BrowserPluginGuest* guest);
71 68
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; 120 base::WeakPtr<BrowserPluginGuest> guest_started_drag_;
124 121
125 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; 122 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_;
126 123
127 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 124 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
128 }; 125 };
129 126
130 } // namespace content 127 } // namespace content
131 128
132 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 129 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_guest.cc ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698