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

Side by Side Diff: chrome/browser/tab_contents/chrome_web_contents_view_delegate_aura.cc

Issue 9963079: Adds a TabContentsViewAura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 "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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698