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

Side by Side Diff: apps/shell/app_shell_content_client.cc

Issue 99053008: Rename apps::AppShell* to apps::Shell* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « apps/shell/app_shell_content_client.h ('k') | apps/shell/app_shell_extensions_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "apps/shell/app_shell_content_client.h"
6
7 #include "base/strings/string_piece.h"
8 #include "base/strings/utf_string_conversions.h"
9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h"
11 #include "webkit/common/user_agent/user_agent_util.h"
12
13 namespace apps {
14
15 AppShellContentClient::AppShellContentClient() {}
16
17 AppShellContentClient::~AppShellContentClient() {}
18
19 std::string AppShellContentClient::GetUserAgent() const {
20 // TODO(derat): Figure out what this should be for app_shell and determine
21 // whether we need to include a version number to placate browser sniffing.
22 return webkit_glue::BuildUserAgentFromProduct("Chrome");
23 }
24
25 string16 AppShellContentClient::GetLocalizedString(int message_id) const {
26 return l10n_util::GetStringUTF16(message_id);
27 }
28
29 base::StringPiece AppShellContentClient::GetDataResource(
30 int resource_id,
31 ui::ScaleFactor scale_factor) const {
32 return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
33 resource_id, scale_factor);
34 }
35
36 base::RefCountedStaticMemory* AppShellContentClient::GetDataResourceBytes(
37 int resource_id) const {
38 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
39 }
40
41 gfx::Image& AppShellContentClient::GetNativeImageNamed(int resource_id) const {
42 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
43 }
44
45 } // namespace apps
OLDNEW
« no previous file with comments | « apps/shell/app_shell_content_client.h ('k') | apps/shell/app_shell_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698