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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 5 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 | Annotate | Revision Log
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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 bool WebContentsDelegate::PreHandleKeyboardEvent( 106 bool WebContentsDelegate::PreHandleKeyboardEvent(
107 WebContents* source, 107 WebContents* source,
108 const NativeWebKeyboardEvent& event, 108 const NativeWebKeyboardEvent& event,
109 bool* is_keyboard_shortcut) { 109 bool* is_keyboard_shortcut) {
110 return false; 110 return false;
111 } 111 }
112 112
113 bool WebContentsDelegate::CanDragEnter( 113 bool WebContentsDelegate::CanDragEnter(
114 WebContents* source, 114 WebContents* source,
115 const WebDropData& data, 115 const DropData& data,
116 WebKit::WebDragOperationsMask operations_allowed) { 116 WebKit::WebDragOperationsMask operations_allowed) {
117 return true; 117 return true;
118 } 118 }
119 119
120 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { 120 bool WebContentsDelegate::OnGoToEntryOffset(int offset) {
121 return true; 121 return true;
122 } 122 }
123 123
124 bool WebContentsDelegate::ShouldCreateWebContents( 124 bool WebContentsDelegate::ShouldCreateWebContents(
125 WebContents* web_contents, 125 WebContents* web_contents,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); 164 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end());
165 attached_contents_.insert(web_contents); 165 attached_contents_.insert(web_contents);
166 } 166 }
167 167
168 void WebContentsDelegate::Detach(WebContents* web_contents) { 168 void WebContentsDelegate::Detach(WebContents* web_contents) {
169 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); 169 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end());
170 attached_contents_.erase(web_contents); 170 attached_contents_.erase(web_contents);
171 } 171 }
172 172
173 } // namespace content 173 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/browser/web_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698