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

Side by Side Diff: content/test/test_content_browser_client.cc

Issue 10933091: Enable a minimal content/ build on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@rohits-image-change
Patch Set: Rebase Created 8 years, 3 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
« no previous file with comments | « content/public/test/unittest_test_suite.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/test_content_browser_client.h" 5 #include "content/test/test_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "content/test/test_web_contents_view.h" 11 #include "content/test/test_web_contents_view.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "third_party/skia/include/core/SkBitmap.h"
14 #include "ui/base/clipboard/clipboard.h"
15 13
16 namespace content { 14 namespace content {
17 15
18 TestContentBrowserClient::TestContentBrowserClient() { 16 TestContentBrowserClient::TestContentBrowserClient() {
19 } 17 }
20 18
21 TestContentBrowserClient::~TestContentBrowserClient() { 19 TestContentBrowserClient::~TestContentBrowserClient() {
22 } 20 }
23 21
24 WebContentsView* TestContentBrowserClient::OverrideCreateWebContentsView( 22 WebContentsView* TestContentBrowserClient::OverrideCreateWebContentsView(
25 WebContents* web_contents, 23 WebContents* web_contents,
26 RenderViewHostDelegateView** render_view_host_delegate_view) { 24 RenderViewHostDelegateView** render_view_host_delegate_view) {
25 #if defined(OS_IOS)
26 return NULL;
27 #else
27 TestWebContentsView* rv = new TestWebContentsView; 28 TestWebContentsView* rv = new TestWebContentsView;
28 *render_view_host_delegate_view = rv; 29 *render_view_host_delegate_view = rv;
29 return rv; 30 return rv;
31 #endif
30 } 32 }
31 33
32 FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() { 34 FilePath TestContentBrowserClient::GetDefaultDownloadDirectory() {
33 if (!download_dir_.IsValid()) { 35 if (!download_dir_.IsValid()) {
34 bool result = download_dir_.CreateUniqueTempDir(); 36 bool result = download_dir_.CreateUniqueTempDir();
35 CHECK(result); 37 CHECK(result);
36 } 38 }
37 return download_dir_.path(); 39 return download_dir_.path();
38 } 40 }
39 41
40 } // namespace content 42 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/unittest_test_suite.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698