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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.cc

Issue 10409029: Add a factory function to create WebContentsView implementations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 7 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 "content/browser/web_contents/web_contents_view_android.h" 5 #include "content/browser/web_contents/web_contents_view_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h"
10
11 namespace content {
12 WebContentsView* CreateWebContentsView(WebContentsImpl* web_contents,
13 WebContentsViewDelegate* delegate) {
14 return new WebContentsViewAndroid(web_contents);
15 }
16 }
9 17
10 WebContentsViewAndroid::WebContentsViewAndroid( 18 WebContentsViewAndroid::WebContentsViewAndroid(
11 content::WebContents* web_contents) 19 content::WebContents* web_contents)
12 : web_contents_(web_contents) { 20 : web_contents_(web_contents) {
13 } 21 }
14 22
15 WebContentsViewAndroid::~WebContentsViewAndroid() { 23 WebContentsViewAndroid::~WebContentsViewAndroid() {
16 } 24 }
17 25
18 void WebContentsViewAndroid::CreateView(const gfx::Size& initial_size) { 26 void WebContentsViewAndroid::CreateView(const gfx::Size& initial_size) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 NOTIMPLEMENTED(); 170 NOTIMPLEMENTED();
163 } 171 }
164 172
165 void WebContentsViewAndroid::GotFocus() { 173 void WebContentsViewAndroid::GotFocus() {
166 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
167 } 175 }
168 176
169 void WebContentsViewAndroid::TakeFocus(bool reverse) { 177 void WebContentsViewAndroid::TakeFocus(bool reverse) {
170 NOTIMPLEMENTED(); 178 NOTIMPLEMENTED();
171 } 179 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698