OLD | NEW |
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" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 virtual base::TimeTicks GetNewTabStartTime() const = 0; | 338 virtual base::TimeTicks GetNewTabStartTime() const = 0; |
339 | 339 |
340 // Tells the tab to close now. The tab will take care not to close until it's | 340 // Tells the tab to close now. The tab will take care not to close until it's |
341 // out of nested message loops. | 341 // out of nested message loops. |
342 virtual void Close() = 0; | 342 virtual void Close() = 0; |
343 | 343 |
344 // Notification that tab closing has started. This can be called multiple | 344 // Notification that tab closing has started. This can be called multiple |
345 // times, subsequent calls are ignored. | 345 // times, subsequent calls are ignored. |
346 virtual void OnCloseStarted() = 0; | 346 virtual void OnCloseStarted() = 0; |
347 | 347 |
348 // Returns true if underlying WebContentsView should accept drag-n-drop. | |
349 virtual bool ShouldAcceptDragAndDrop() const = 0; | |
350 | |
351 // A render view-originated drag has ended. Informs the render view host and | 348 // A render view-originated drag has ended. Informs the render view host and |
352 // WebContentsDelegate. | 349 // WebContentsDelegate. |
353 virtual void SystemDragEnded() = 0; | 350 virtual void SystemDragEnded() = 0; |
354 | 351 |
355 // Notification the user has made a gesture while focus was on the | 352 // Notification the user has made a gesture while focus was on the |
356 // page. This is used to avoid uninitiated user downloads (aka carpet | 353 // page. This is used to avoid uninitiated user downloads (aka carpet |
357 // bombing), see DownloadRequestLimiter for details. | 354 // bombing), see DownloadRequestLimiter for details. |
358 virtual void UserGestureDone() = 0; | 355 virtual void UserGestureDone() = 0; |
359 | 356 |
360 // Indicates if this tab was explicitly closed by the user (control-w, close | 357 // Indicates if this tab was explicitly closed by the user (control-w, close |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 | 428 |
432 private: | 429 private: |
433 // This interface should only be implemented inside content. | 430 // This interface should only be implemented inside content. |
434 friend class WebContentsImpl; | 431 friend class WebContentsImpl; |
435 WebContents() {} | 432 WebContents() {} |
436 }; | 433 }; |
437 | 434 |
438 } // namespace content | 435 } // namespace content |
439 | 436 |
440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |