| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void set_closed_by_user_gesture(bool value) { | 437 void set_closed_by_user_gesture(bool value) { |
| 438 closed_by_user_gesture_ = value; | 438 closed_by_user_gesture_ = value; |
| 439 } | 439 } |
| 440 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } | 440 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } |
| 441 | 441 |
| 442 // Overridden from JavaScriptDialogDelegate: | 442 // Overridden from JavaScriptDialogDelegate: |
| 443 virtual void OnDialogClosed(IPC::Message* reply_msg, | 443 virtual void OnDialogClosed(IPC::Message* reply_msg, |
| 444 bool success, | 444 bool success, |
| 445 const string16& user_input) OVERRIDE; | 445 const string16& user_input) OVERRIDE; |
| 446 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE; | 446 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE; |
| 447 virtual TabContents* AsTabContents() OVERRIDE; | 447 virtual void OnDialogShown() OVERRIDE; |
| 448 virtual ExtensionHost* AsExtensionHost() OVERRIDE; | |
| 449 | 448 |
| 450 // The BookmarkDragDelegate is used to forward bookmark drag and drop events | 449 // The BookmarkDragDelegate is used to forward bookmark drag and drop events |
| 451 // to extensions. | 450 // to extensions. |
| 452 virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate(); | 451 virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate(); |
| 453 | 452 |
| 454 // It is up to callers to call SetBookmarkDragDelegate(NULL) when | 453 // It is up to callers to call SetBookmarkDragDelegate(NULL) when |
| 455 // |bookmark_drag| is deleted since this class does not take ownership of | 454 // |bookmark_drag| is deleted since this class does not take ownership of |
| 456 // |bookmark_drag|. | 455 // |bookmark_drag|. |
| 457 virtual void SetBookmarkDragDelegate( | 456 virtual void SetBookmarkDragDelegate( |
| 458 RenderViewHostDelegate::BookmarkDrag* bookmark_drag); | 457 RenderViewHostDelegate::BookmarkDrag* bookmark_drag); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 ObserverList<TabContentsObserver> observers_; | 849 ObserverList<TabContentsObserver> observers_; |
| 851 | 850 |
| 852 // Content restrictions, used to disable print/copy etc based on content's | 851 // Content restrictions, used to disable print/copy etc based on content's |
| 853 // (full-page plugins for now only) permissions. | 852 // (full-page plugins for now only) permissions. |
| 854 int content_restrictions_; | 853 int content_restrictions_; |
| 855 | 854 |
| 856 DISALLOW_COPY_AND_ASSIGN(TabContents); | 855 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 857 }; | 856 }; |
| 858 | 857 |
| 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 858 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |