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 #include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h" | 5 #include "chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.h" |
6 | 6 |
7 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h" | 7 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_aura.h" |
8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
9 #include "content/public/browser/web_contents_view.h" | 9 #include "content/public/browser/web_contents_view.h" |
10 | 10 |
11 ChromeWebContentsViewDelegateAura::ChromeWebContentsViewDelegateAura( | 11 ChromeWebContentsViewDelegateAura::ChromeWebContentsViewDelegateAura( |
12 content::WebContents* web_contents) | 12 content::WebContents* web_contents) |
13 : web_contents_(web_contents), | 13 : web_contents_(web_contents), |
14 bookmark_handler_(new WebDragBookmarkHandlerAura()) { | 14 bookmark_handler_(new WebDragBookmarkHandlerAura()) { |
15 } | 15 } |
16 | 16 |
17 ChromeWebContentsViewDelegateAura::~ChromeWebContentsViewDelegateAura() { | 17 ChromeWebContentsViewDelegateAura::~ChromeWebContentsViewDelegateAura() { |
18 } | 18 } |
19 | 19 |
20 content::WebDragDestDelegate* | 20 content::WebDragDestDelegate* |
21 ChromeWebContentsViewDelegateAura::GetDragDestDelegate() { | 21 ChromeWebContentsViewDelegateAura::GetDragDestDelegate() { |
22 // We install a chrome specific handler to intercept bookmark drags for the | 22 // We install a chrome specific handler to intercept bookmark drags for the |
23 // bookmark manager/extension API. | 23 // bookmark manager/extension API. |
24 return bookmark_handler_.get(); | 24 return bookmark_handler_.get(); |
25 } | 25 } |
26 | 26 |
| 27 void ChromeWebContentsViewDelegateAura::StoreFocus() { |
| 28 } |
| 29 |
| 30 void ChromeWebContentsViewDelegateAura::RestoreFocus() { |
| 31 } |
| 32 |
| 33 bool ChromeWebContentsViewDelegateAura::Focus() { |
| 34 return false; |
| 35 } |
| 36 |
| 37 void ChromeWebContentsViewDelegateAura::TakeFocus(bool reverse) { |
| 38 } |
| 39 |
27 void ChromeWebContentsViewDelegateAura::ShowContextMenu( | 40 void ChromeWebContentsViewDelegateAura::ShowContextMenu( |
28 const content::ContextMenuParams& params) { | 41 const content::ContextMenuParams& params) { |
29 } | 42 } |
| 43 |
| 44 void ChromeWebContentsViewDelegateAura::SizeChanged(const gfx::Size& size) { |
| 45 } |
OLD | NEW |