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

Side by Side Diff: chrome/browser/resource_delegate_mac.h

Issue 1585013002: MacViews: Use Cocoa folder icons in tree views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. 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
(Empty)
1 // Copyright 2016 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 #ifndef CHROME_BROWSER_RESOURCE_DELEGATE_MAC_H_
6 #define CHROME_BROWSER_RESOURCE_DELEGATE_MAC_H_
7
8 #include "base/macros.h"
9 #include "ui/base/resource/resource_bundle.h"
10
11 namespace ui {
tapted 2016/01/19 00:36:52 whoops - stuff under chrome/* doesn't (usually) be
karandeepb 2016/01/20 10:22:37 Done.
12
13 // A resource bundle delegate. Primary purpose is to intercept certain resource
tapted 2016/01/19 00:36:52 A resource bundle delegate -> A resource bundle de
karandeepb 2016/01/20 10:22:37 Done.
14 // ids and to provide Mac specific assets for them at runtime.
tapted 2016/01/19 00:36:52 There are other ways to provide Mac-specific asset
karandeepb 2016/01/20 10:22:37 Done.
15 class UI_BASE_EXPORT MacResourceDelegate : public ui::ResourceBundle::Delegate {
tapted 2016/01/19 00:36:52 remove UI_BASE_EXPORT
karandeepb 2016/01/20 10:22:37 Done.
16 public:
17 MacResourceDelegate();
18 ~MacResourceDelegate() override;
19
20 // ui:ResourceBundle::Delegate implementation:
21 base::FilePath GetPathForResourcePack(const base::FilePath& pack_path,
22 ui::ScaleFactor scale_factor) override;
23 base::FilePath GetPathForLocalePack(const base::FilePath& pack_path,
24 const std::string& locale) override;
25 gfx::Image GetImageNamed(int resource_id) override;
26 gfx::Image GetNativeImageNamed(int resource_id,
27 ui::ResourceBundle::ImageRTL rtl) override;
28 base::RefCountedStaticMemory* LoadDataResourceBytes(
29 int resource_id,
30 ui::ScaleFactor scale_factor) override;
31 bool GetRawDataResource(int resource_id,
32 ui::ScaleFactor scale_factor,
33 base::StringPiece* value) override;
34 bool GetLocalizedString(int message_id, base::string16* value) override;
35 scoped_ptr<gfx::Font> GetFont(ui::ResourceBundle::FontStyle style) override;
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(MacResourceDelegate);
39 };
40
41 } // namespace ui
42
43 #endif // CHROME_BROWSER_RESOURCE_DELEGATE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698