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

Side by Side Diff: chrome/browser/ui/webui/theme_source.h

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #ifndef CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 virtual MessageLoop* MessageLoopForRequestPath( 31 virtual MessageLoop* MessageLoopForRequestPath(
32 const std::string& path) const OVERRIDE; 32 const std::string& path) const OVERRIDE;
33 33
34 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 34 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
35 35
36 protected: 36 protected:
37 virtual ~ThemeSource(); 37 virtual ~ThemeSource();
38 38
39 private: 39 private:
40 // Fetch and send the theme bitmap. 40 // Fetch and send the theme bitmap.
41 void SendThemeBitmap(int request_id, int resource_id); 41 void SendThemeBitmap(int request_id, int resource_id, float scale_factor);
42 42
43 // The original profile (never an OTR profile). 43 // The original profile (never an OTR profile).
44 Profile* profile_; 44 Profile* profile_;
45 45
46 // We grab the CSS early so we don't have to go back to the UI thread later. 46 // We grab the CSS early so we don't have to go back to the UI thread later.
47 scoped_refptr<base::RefCountedMemory> css_bytes_; 47 scoped_refptr<base::RefCountedMemory> css_bytes_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ThemeSource); 49 DISALLOW_COPY_AND_ASSIGN(ThemeSource);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_ 52 #endif // CHROME_BROWSER_UI_WEBUI_THEME_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/theme_source.cc » ('j') | ui/base/resource/resource_bundle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698