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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc

Issue 10073014: Add more functionality to WebView. (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) 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 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_aur a.h" 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_aur a.h"
6 6
7 #include "chrome/browser/ui/view_ids.h" 7 #include "chrome/browser/ui/view_ids.h"
8 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" 8 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
9 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" 9 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/base/accessibility/accessible_view_state.h" 12 #include "ui/base/accessibility/accessible_view_state.h"
13 #include "ui/views/focus/focus_manager.h" 13 #include "ui/views/focus/focus_manager.h"
14 #include "ui/views/focus/widget_focus_manager.h" 14 #include "ui/views/focus/widget_focus_manager.h"
15 #include "ui/views/views_delegate.h" 15 #include "ui/views/views_delegate.h"
16 16
17 using content::RenderViewHost; 17 using content::RenderViewHost;
18 using content::WebContents; 18 using content::WebContents;
19 19
20 //////////////////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////////////////
21 // NativeTabContentsContainerAura, public: 21 // NativeTabContentsContainerAura, public:
22 22
23 NativeTabContentsContainerAura::NativeTabContentsContainerAura( 23 NativeTabContentsContainerAura::NativeTabContentsContainerAura(
24 TabContentsContainer* container) 24 TabContentsContainer* container)
25 : container_(container) { 25 : container_(container) {
26 set_id(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW);
27 } 26 }
28 27
29 NativeTabContentsContainerAura::~NativeTabContentsContainerAura() { 28 NativeTabContentsContainerAura::~NativeTabContentsContainerAura() {
30 } 29 }
31 30
32 //////////////////////////////////////////////////////////////////////////////// 31 ////////////////////////////////////////////////////////////////////////////////
33 // NativeTabContentsContainerAura, NativeTabContentsContainer overrides: 32 // NativeTabContentsContainerAura, NativeTabContentsContainer overrides:
34 33
35 void NativeTabContentsContainerAura::AttachContents(WebContents* contents) { 34 void NativeTabContentsContainerAura::AttachContents(WebContents* contents) {
36 // We need to register the tab contents window with the BrowserContainer so 35 // We need to register the tab contents window with the BrowserContainer so
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 138 }
140 139
141 //////////////////////////////////////////////////////////////////////////////// 140 ////////////////////////////////////////////////////////////////////////////////
142 // NativeTabContentsContainer, public: 141 // NativeTabContentsContainer, public:
143 142
144 // static 143 // static
145 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( 144 NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer(
146 TabContentsContainer* container) { 145 TabContentsContainer* container) {
147 return new NativeTabContentsContainerAura(container); 146 return new NativeTabContentsContainerAura(container);
148 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698