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

Side by Side Diff: content/public/browser/web_contents.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 | « content/browser/web_contents/web_drag_source_mac_unittest.mm ('k') | no next file » | 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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace content { 53 namespace content {
54 54
55 class BrowserContext; 55 class BrowserContext;
56 class BrowserPluginGuestDelegate; 56 class BrowserPluginGuestDelegate;
57 class InterstitialPage; 57 class InterstitialPage;
58 class PageState; 58 class PageState;
59 class RenderFrameHost; 59 class RenderFrameHost;
60 class RenderProcessHost; 60 class RenderProcessHost;
61 class RenderViewHost; 61 class RenderViewHost;
62 class RenderWidgetHost;
62 class RenderWidgetHostView; 63 class RenderWidgetHostView;
63 class WebContentsDelegate; 64 class WebContentsDelegate;
64 struct CustomContextMenuContext; 65 struct CustomContextMenuContext;
65 struct DropData; 66 struct DropData;
66 struct Manifest; 67 struct Manifest;
67 struct MHTMLGenerationParams; 68 struct MHTMLGenerationParams;
68 struct PageImportanceSignals; 69 struct PageImportanceSignals;
69 struct RendererPreferences; 70 struct RendererPreferences;
70 71
71 // WebContents is the core class in content/. A WebContents renders web content 72 // WebContents is the core class in content/. A WebContents renders web content
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 583
583 // Returns the settings which get passed to the renderer. 584 // Returns the settings which get passed to the renderer.
584 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0; 585 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0;
585 586
586 // Tells the tab to close now. The tab will take care not to close until it's 587 // Tells the tab to close now. The tab will take care not to close until it's
587 // out of nested message loops. 588 // out of nested message loops.
588 virtual void Close() = 0; 589 virtual void Close() = 0;
589 590
590 // A render view-originated drag has ended. Informs the render view host and 591 // A render view-originated drag has ended. Informs the render view host and
591 // WebContentsDelegate. 592 // WebContentsDelegate.
592 virtual void SystemDragEnded() = 0; 593 virtual void SystemDragEnded(RenderWidgetHost* source_rwh) = 0;
593 594
594 // Notification the user has made a gesture while focus was on the 595 // Notification the user has made a gesture while focus was on the
595 // page. This is used to avoid uninitiated user downloads (aka carpet 596 // page. This is used to avoid uninitiated user downloads (aka carpet
596 // bombing), see DownloadRequestLimiter for details. 597 // bombing), see DownloadRequestLimiter for details.
597 virtual void UserGestureDone() = 0; 598 virtual void UserGestureDone() = 0;
598 599
599 // Indicates if this tab was explicitly closed by the user (control-w, close 600 // Indicates if this tab was explicitly closed by the user (control-w, close
600 // tab menu item...). This is false for actions that indirectly close the tab, 601 // tab menu item...). This is false for actions that indirectly close the tab,
601 // such as closing the window. The setter is maintained by TabStripModel, and 602 // such as closing the window. The setter is maintained by TabStripModel, and
602 // the getter only useful from within TAB_CLOSED notification 603 // the getter only useful from within TAB_CLOSED notification
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 766
766 private: 767 private:
767 // This interface should only be implemented inside content. 768 // This interface should only be implemented inside content.
768 friend class WebContentsImpl; 769 friend class WebContentsImpl;
769 WebContents() {} 770 WebContents() {}
770 }; 771 };
771 772
772 } // namespace content 773 } // namespace content
773 774
774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 775 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_source_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698