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

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

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed Comments Created 7 years, 8 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/browser/page_navigator.h" 15 #include "content/public/browser/page_navigator.h"
16 #include "content/public/browser/save_page_type.h" 16 #include "content/public/browser/save_page_type.h"
17 #include "content/public/browser/web_ui.h" 17 #include "content/public/browser/web_ui.h"
18 #include "ipc/ipc_sender.h" 18 #include "ipc/ipc_sender.h"
19 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
20 #include "ui/base/window_open_disposition.h" 21 #include "ui/base/window_open_disposition.h"
21 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
22 #include "ui/gfx/size.h" 23 #include "ui/gfx/size.h"
23 24
24 namespace base { 25 namespace base {
25 class TimeTicks; 26 class TimeTicks;
26 } 27 }
27 28
28 namespace gfx { 29 namespace gfx {
29 class Rect; 30 class Rect;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 virtual base::TimeTicks GetNewTabStartTime() const = 0; 337 virtual base::TimeTicks GetNewTabStartTime() const = 0;
337 338
338 // Tells the tab to close now. The tab will take care not to close until it's 339 // Tells the tab to close now. The tab will take care not to close until it's
339 // out of nested message loops. 340 // out of nested message loops.
340 virtual void Close() = 0; 341 virtual void Close() = 0;
341 342
342 // Notification that tab closing has started. This can be called multiple 343 // Notification that tab closing has started. This can be called multiple
343 // times, subsequent calls are ignored. 344 // times, subsequent calls are ignored.
344 virtual void OnCloseStarted() = 0; 345 virtual void OnCloseStarted() = 0;
345 346
346 // A render view-originated drag has ended. Informs the render view host and 347 // Informs the render view host and the BrowserPluginEmbedder, if present, of
347 // WebContentsDelegate. 348 // a Drag Source End.
349 virtual void DragSourceEndedAt(int client_x, int client_y, int screen_x,
Fady Samuel 2013/04/18 18:22:56 Is this necessary?
mthiesse 2013/04/18 18:36:32 Done.
350 int screen_y, WebKit::WebDragOperation operation) = 0;
351
352 // Informs the render view host and the BrowserPluginEmbedder, if present, of
353 // a Drag Source Move.
354 virtual void DragSourceMovedTo(int client_x, int client_y,
Fady Samuel 2013/04/18 18:22:56 Is this necessary?
mthiesse 2013/04/18 18:36:32 Done.
355 int screen_x, int screen_y) = 0;
356
357 // A render view-originated drag has ended. Informs the render view host, the
358 // WebContentsDelegate, and the BrowserPluginEmbedder, if present.
Fady Samuel 2013/04/18 18:22:56 Please avoid referencing BrowserPluginEmbedder her
mthiesse 2013/04/18 18:36:32 It's probably fine if I leave this comment as-is.
348 virtual void SystemDragEnded() = 0; 359 virtual void SystemDragEnded() = 0;
349 360
350 // Notification the user has made a gesture while focus was on the 361 // Notification the user has made a gesture while focus was on the
351 // page. This is used to avoid uninitiated user downloads (aka carpet 362 // page. This is used to avoid uninitiated user downloads (aka carpet
352 // bombing), see DownloadRequestLimiter for details. 363 // bombing), see DownloadRequestLimiter for details.
353 virtual void UserGestureDone() = 0; 364 virtual void UserGestureDone() = 0;
354 365
355 // Indicates if this tab was explicitly closed by the user (control-w, close 366 // Indicates if this tab was explicitly closed by the user (control-w, close
356 // tab menu item...). This is false for actions that indirectly close the tab, 367 // tab menu item...). This is false for actions that indirectly close the tab,
357 // such as closing the window. The setter is maintained by TabStripModel, and 368 // such as closing the window. The setter is maintained by TabStripModel, and
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 433
423 private: 434 private:
424 // This interface should only be implemented inside content. 435 // This interface should only be implemented inside content.
425 friend class WebContentsImpl; 436 friend class WebContentsImpl;
426 WebContents() {} 437 WebContents() {}
427 }; 438 };
428 439
429 } // namespace content 440 } // namespace content
430 441
431 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 442 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698