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

Side by Side Diff: chrome/browser/themes/browser_theme_pack.h

Issue 7575017: Revert 95480 - Abstract fullscreen exit bubble logic to bring Linux's behaviour in line with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/themes/browser_theme_pack.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_THEMES_BROWSER_THEME_PACK_H_ 5 #ifndef CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_
6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ 6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 friend class BrowserThemePackTest; 96 friend class BrowserThemePackTest;
97 97
98 // Cached images. We cache all retrieved and generated bitmaps and keep 98 // Cached images. We cache all retrieved and generated bitmaps and keep
99 // track of the pointers. We own these and will delete them when we're done 99 // track of the pointers. We own these and will delete them when we're done
100 // using them. 100 // using them.
101 typedef std::map<int, const gfx::Image*> ImageCache; 101 typedef std::map<int, const gfx::Image*> ImageCache;
102 102
103 // The raw PNG memory associated with a certain id. 103 // The raw PNG memory associated with a certain id.
104 typedef std::map<int, scoped_refptr<RefCountedMemory> > RawImages; 104 typedef std::map<int, scoped_refptr<RefCountedMemory> > RawImages;
105 105
106 // The type passed to ui::DataPack::WritePack. 106 // The type passed to base::DataPack::WritePack.
107 typedef std::map<uint16, base::StringPiece> RawDataForWriting; 107 typedef std::map<uint32, base::StringPiece> RawDataForWriting;
108 108
109 // An association between an id and the FilePath that has the image data. 109 // An association between an id and the FilePath that has the image data.
110 typedef std::map<int, FilePath> FilePathMap; 110 typedef std::map<int, FilePath> FilePathMap;
111 111
112 // Default. Everything is empty. 112 // Default. Everything is empty.
113 BrowserThemePack(); 113 BrowserThemePack();
114 114
115 virtual ~BrowserThemePack(); 115 virtual ~BrowserThemePack();
116 116
117 // Builds a header ready to write to disk. 117 // Builds a header ready to write to disk.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // in |image_memory_| that are in |prepared_images_| or vice versa. 233 // in |image_memory_| that are in |prepared_images_| or vice versa.
234 ImageCache prepared_images_; 234 ImageCache prepared_images_;
235 235
236 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|. 236 // Loaded images. These are loaded from |image_memory_| or the |data_pack_|.
237 mutable ImageCache loaded_images_; 237 mutable ImageCache loaded_images_;
238 238
239 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack); 239 DISALLOW_COPY_AND_ASSIGN(BrowserThemePack);
240 }; 240 };
241 241
242 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_ 242 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PACK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698