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

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 301303003: GuestView: Move Disable Drag and Drop Out to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change_browser_plugin_guest_delegate_lifetime
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 content::WebContents* source, 117 content::WebContents* source,
118 const content::OpenURLParams& params) OVERRIDE; 118 const content::OpenURLParams& params) OVERRIDE;
119 virtual void WebContentsCreated(content::WebContents* source_contents, 119 virtual void WebContentsCreated(content::WebContents* source_contents,
120 int opener_render_frame_id, 120 int opener_render_frame_id,
121 const base::string16& frame_name, 121 const base::string16& frame_name,
122 const GURL& target_url, 122 const GURL& target_url,
123 content::WebContents* new_contents) OVERRIDE; 123 content::WebContents* new_contents) OVERRIDE;
124 124
125 // BrowserPluginGuestDelegate implementation. 125 // BrowserPluginGuestDelegate implementation.
126 virtual void DidAttach() OVERRIDE; 126 virtual void DidAttach() OVERRIDE;
127 virtual bool IsDragAndDropEnabled() OVERRIDE;
128 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) 127 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size)
129 OVERRIDE; 128 OVERRIDE;
130 virtual void RequestPointerLockPermission( 129 virtual void RequestPointerLockPermission(
131 bool user_gesture, 130 bool user_gesture,
132 bool last_unlocked_by_target, 131 bool last_unlocked_by_target,
133 const base::Callback<void(bool)>& callback) OVERRIDE; 132 const base::Callback<void(bool)>& callback) OVERRIDE;
134 virtual void NavigateGuest(const std::string& src) OVERRIDE; 133 virtual void NavigateGuest(const std::string& src) OVERRIDE;
135 virtual void Destroy() OVERRIDE; 134 virtual void Destroy() OVERRIDE;
136 135
137 // NotificationObserver implementation. 136 // NotificationObserver implementation.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 name(name) {} 429 name(name) {}
431 }; 430 };
432 431
433 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 432 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
434 PendingWindowMap pending_new_windows_; 433 PendingWindowMap pending_new_windows_;
435 434
436 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 435 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
437 }; 436 };
438 437
439 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 438 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698