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

Side by Side Diff: chromecast/common/cast_resource_delegate.h

Issue 1601583002: Cleanup: Remove unused ui::ResourceBundle::ImageRTL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_ 5 #ifndef CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_
6 #define CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_ 6 #define CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 ~CastResourceDelegate() override; 33 ~CastResourceDelegate() override;
34 34
35 // ui:ResourceBundle::Delegate implementation: 35 // ui:ResourceBundle::Delegate implementation:
36 base::FilePath GetPathForResourcePack( 36 base::FilePath GetPathForResourcePack(
37 const base::FilePath& pack_path, 37 const base::FilePath& pack_path,
38 ui::ScaleFactor scale_factor) override; 38 ui::ScaleFactor scale_factor) override;
39 base::FilePath GetPathForLocalePack( 39 base::FilePath GetPathForLocalePack(
40 const base::FilePath& pack_path, 40 const base::FilePath& pack_path,
41 const std::string& locale) override; 41 const std::string& locale) override;
42 gfx::Image GetImageNamed(int resource_id) override; 42 gfx::Image GetImageNamed(int resource_id) override;
43 gfx::Image GetNativeImageNamed( 43 gfx::Image GetNativeImageNamed(int resource_id) override;
44 int resource_id,
45 ui::ResourceBundle::ImageRTL rtl) override;
46 base::RefCountedStaticMemory* LoadDataResourceBytes( 44 base::RefCountedStaticMemory* LoadDataResourceBytes(
47 int resource_id, 45 int resource_id,
48 ui::ScaleFactor scale_factor) override; 46 ui::ScaleFactor scale_factor) override;
49 bool GetRawDataResource(int resource_id, 47 bool GetRawDataResource(int resource_id,
50 ui::ScaleFactor scale_factor, 48 ui::ScaleFactor scale_factor,
51 base::StringPiece* value) override; 49 base::StringPiece* value) override;
52 bool GetLocalizedString(int message_id, base::string16* value) override; 50 bool GetLocalizedString(int message_id, base::string16* value) override;
53 scoped_ptr<gfx::Font> GetFont(ui::ResourceBundle::FontStyle style) override; 51 scoped_ptr<gfx::Font> GetFont(ui::ResourceBundle::FontStyle style) override;
54 52
55 // Adds/removes/clears extra localized strings. 53 // Adds/removes/clears extra localized strings.
56 void AddExtraLocalizedString(int resource_id, 54 void AddExtraLocalizedString(int resource_id,
57 const base::string16& localized); 55 const base::string16& localized);
58 void RemoveExtraLocalizedString(int resource_id); 56 void RemoveExtraLocalizedString(int resource_id);
59 void ClearAllExtraLocalizedStrings(); 57 void ClearAllExtraLocalizedStrings();
60 58
61 private: 59 private:
62 typedef base::hash_map<int, base::string16> ExtraLocaledStringMap; 60 typedef base::hash_map<int, base::string16> ExtraLocaledStringMap;
63 61
64 ExtraLocaledStringMap extra_localized_strings_; 62 ExtraLocaledStringMap extra_localized_strings_;
65 63
66 DISALLOW_COPY_AND_ASSIGN(CastResourceDelegate); 64 DISALLOW_COPY_AND_ASSIGN(CastResourceDelegate);
67 }; 65 };
68 66
69 } // namespace chromecast 67 } // namespace chromecast
70 68
71 #endif // CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_ 69 #endif // CHROMECAST_COMMON_CAST_RESOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm ('k') | chromecast/common/cast_resource_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698