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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 1392343002: Reduce the public method footprint of GuestViewBase and derived types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Reverted reordering in cc files. Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Asks the delegate if the given guest can lock the pointer. 72 // Asks the delegate if the given guest can lock the pointer.
73 // Invoking the |callback| synchronously is OK. 73 // Invoking the |callback| synchronously is OK.
74 virtual void RequestPointerLockPermission( 74 virtual void RequestPointerLockPermission(
75 bool user_gesture, 75 bool user_gesture,
76 bool last_unlocked_by_target, 76 bool last_unlocked_by_target,
77 const base::Callback<void(bool)>& callback) {} 77 const base::Callback<void(bool)>& callback) {}
78 78
79 // Find the given |search_text| in the page. Returns true if the find request 79 // Find the given |search_text| in the page. Returns true if the find request
80 // is handled by this browser plugin guest delegate. 80 // is handled by this browser plugin guest delegate.
81 virtual bool Find(int request_id, 81 virtual bool HandleFindForEmbedder(int request_id,
82 const base::string16& search_text, 82 const base::string16& search_text,
83 const blink::WebFindOptions& options); 83 const blink::WebFindOptions& options);
84 virtual bool StopFinding(StopFindAction action); 84 virtual bool HandleStopFindingForEmbedder(StopFindAction action);
85 85
86 // Provides the delegate with an interface with which to communicate with the 86 // Provides the delegate with an interface with which to communicate with the
87 // content module. 87 // content module.
88 virtual void SetGuestHost(GuestHost* guest_host) {} 88 virtual void SetGuestHost(GuestHost* guest_host) {}
89 89
90 // Sets the position of the context menu for the guest contents. The value 90 // Sets the position of the context menu for the guest contents. The value
91 // reported from the guest renderer should be ignored. The reported value 91 // reported from the guest renderer should be ignored. The reported value
92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is 92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is
93 // subject to CSS transforms. 93 // subject to CSS transforms.
94 virtual void SetContextMenuPosition(const gfx::Point& position) {} 94 virtual void SetContextMenuPosition(const gfx::Point& position) {}
95 }; 95 };
96 96
97 } // namespace content 97 } // namespace content
98 98
99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698