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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2509933002: Drag-and-drop: Target drag messages (the sequel). (Closed)
Patch Set: Addressed additional comments by avi@, dcheng@. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Cancels modal dialogs in this WebContents, as well as in any browser 180 // Cancels modal dialogs in this WebContents, as well as in any browser
181 // plugins it is hosting. 181 // plugins it is hosting.
182 void CancelActiveAndPendingDialogs(); 182 void CancelActiveAndPendingDialogs();
183 183
184 // Informs the render view host and the BrowserPluginEmbedder, if present, of 184 // Informs the render view host and the BrowserPluginEmbedder, if present, of
185 // a Drag Source End. 185 // a Drag Source End.
186 void DragSourceEndedAt(int client_x, 186 void DragSourceEndedAt(int client_x,
187 int client_y, 187 int client_y,
188 int screen_x, 188 int screen_x,
189 int screen_y, 189 int screen_y,
190 blink::WebDragOperation operation); 190 blink::WebDragOperation operation,
191 RenderWidgetHost* source_rwh);
191 192
192 // Notification that the RenderViewHost's load state changed. 193 // Notification that the RenderViewHost's load state changed.
193 void LoadStateChanged(const GURL& url, 194 void LoadStateChanged(const GURL& url,
194 const net::LoadStateWithParam& load_state, 195 const net::LoadStateWithParam& load_state,
195 uint64_t upload_position, 196 uint64_t upload_position,
196 uint64_t upload_size); 197 uint64_t upload_size);
197 198
198 // A response has been received for a resource request. 199 // A response has been received for a resource request.
199 void DidGetResourceResponseStart( 200 void DidGetResourceResponseStart(
200 const ResourceRequestDetails& details); 201 const ResourceRequestDetails& details);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 void SaveFrame(const GURL& url, const Referrer& referrer) override; 380 void SaveFrame(const GURL& url, const Referrer& referrer) override;
380 void SaveFrameWithHeaders(const GURL& url, 381 void SaveFrameWithHeaders(const GURL& url,
381 const Referrer& referrer, 382 const Referrer& referrer,
382 const std::string& headers) override; 383 const std::string& headers) override;
383 void GenerateMHTML(const MHTMLGenerationParams& params, 384 void GenerateMHTML(const MHTMLGenerationParams& params,
384 const base::Callback<void(int64_t)>& callback) override; 385 const base::Callback<void(int64_t)>& callback) override;
385 const std::string& GetContentsMimeType() const override; 386 const std::string& GetContentsMimeType() const override;
386 bool WillNotifyDisconnection() const override; 387 bool WillNotifyDisconnection() const override;
387 RendererPreferences* GetMutableRendererPrefs() override; 388 RendererPreferences* GetMutableRendererPrefs() override;
388 void Close() override; 389 void Close() override;
389 void SystemDragEnded() override; 390 void SystemDragEnded(RenderWidgetHost* source_rwh) override;
390 void UserGestureDone() override; 391 void UserGestureDone() override;
391 void SetClosedByUserGesture(bool value) override; 392 void SetClosedByUserGesture(bool value) override;
392 bool GetClosedByUserGesture() const override; 393 bool GetClosedByUserGesture() const override;
393 void ViewSource() override; 394 void ViewSource() override;
394 void ViewFrameSource(const GURL& url, const PageState& page_state) override; 395 void ViewFrameSource(const GURL& url, const PageState& page_state) override;
395 int GetMinimumZoomPercent() const override; 396 int GetMinimumZoomPercent() const override;
396 int GetMaximumZoomPercent() const override; 397 int GetMaximumZoomPercent() const override;
397 void SetPageScale(float page_scale_factor) override; 398 void SetPageScale(float page_scale_factor) override;
398 gfx::Size GetPreferredSize() const override; 399 gfx::Size GetPreferredSize() const override;
399 bool GotResponseToLockMouseRequest(bool allowed) override; 400 bool GotResponseToLockMouseRequest(bool allowed) override;
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 // Adds/removes a callback called on creation of each new WebContents. 1458 // Adds/removes a callback called on creation of each new WebContents.
1458 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1459 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1459 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1460 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1460 1461
1461 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1462 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1462 }; 1463 };
1463 1464
1464 } // namespace content 1465 } // namespace content
1465 1466
1466 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1467 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698