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 CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // custom drag and drop for bookmarks. | 21 // custom drag and drop for bookmarks. |
22 class ChromeWebContentsViewDelegateAura | 22 class ChromeWebContentsViewDelegateAura |
23 : public content::WebContentsViewDelegate { | 23 : public content::WebContentsViewDelegate { |
24 public: | 24 public: |
25 explicit ChromeWebContentsViewDelegateAura( | 25 explicit ChromeWebContentsViewDelegateAura( |
26 content::WebContents* web_contents); | 26 content::WebContents* web_contents); |
27 virtual ~ChromeWebContentsViewDelegateAura(); | 27 virtual ~ChromeWebContentsViewDelegateAura(); |
28 | 28 |
29 // Overridden from WebContentsViewDelegate: | 29 // Overridden from WebContentsViewDelegate: |
30 virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE; | 30 virtual content::WebDragDestDelegate* GetDragDestDelegate() OVERRIDE; |
| 31 virtual void StoreFocus() OVERRIDE; |
| 32 virtual void RestoreFocus() OVERRIDE; |
| 33 virtual bool Focus() OVERRIDE; |
| 34 virtual void TakeFocus(bool reverse) OVERRIDE; |
31 virtual void ShowContextMenu( | 35 virtual void ShowContextMenu( |
32 const content::ContextMenuParams& params) OVERRIDE; | 36 const content::ContextMenuParams& params) OVERRIDE; |
| 37 virtual void SizeChanged(const gfx::Size& size) OVERRIDE; |
33 | 38 |
34 private: | 39 private: |
35 content::WebContents* web_contents_; | 40 content::WebContents* web_contents_; |
36 | 41 |
37 // The chrome specific delegate for bookmark DnD. | 42 // The chrome specific delegate for bookmark DnD. |
38 scoped_ptr<WebDragBookmarkHandlerAura> bookmark_handler_; | 43 scoped_ptr<WebDragBookmarkHandlerAura> bookmark_handler_; |
39 | 44 |
40 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAura); | 45 DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateAura); |
41 }; | 46 }; |
42 | 47 |
43 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ | 48 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_AURA_H_ |
OLD | NEW |