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

Unified Diff: chrome/browser/page_info_model.h

Issue 6541031: Integrate gfx::Image into the ResourceBundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some comments Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_controller_mac.mm ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_info_model.h
diff --git a/chrome/browser/page_info_model.h b/chrome/browser/page_info_model.h
index df7d986e642f8f00d808d96f5b7fba8ea0b5487d..94903854d92fef682d26be9ec3e809446d1a28c3 100644
--- a/chrome/browser/page_info_model.h
+++ b/chrome/browser/page_info_model.h
@@ -13,7 +13,7 @@
#include "chrome/browser/history/history.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "googleurl/src/gurl.h"
-#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/image.h"
class PrefService;
class Profile;
@@ -82,13 +82,12 @@ class PageInfoModel {
const NavigationEntry::SSLStatus& ssl,
bool show_history,
PageInfoModelObserver* observer);
- ~PageInfoModel();
int GetSectionCount();
SectionInfo GetSectionInfo(int index);
// Returns the native image type for an icon with the given id.
- gfx::NativeImage GetIconImage(SectionStateIcon icon_id);
+ gfx::Image* GetIconImage(SectionStateIcon icon_id);
// Callback from history service with number of visits to url.
void OnGotVisitCountToHost(HistoryService::Handle handle,
@@ -103,16 +102,12 @@ class PageInfoModel {
// Shared initialization for default and testing constructor.
void Init();
- // Wrapper for ResourceBundle::GetNativeImage() so that Mac can retain its
- // icons.
- gfx::NativeImage GetBitmapNamed(int resource_id);
-
PageInfoModelObserver* observer_;
std::vector<SectionInfo> sections_;
// All possible icons that go next to the text descriptions to indicate state.
- std::vector<gfx::NativeImage> icons_;
+ std::vector<gfx::Image*> icons_;
// Used to request number of visits.
CancelableRequestConsumer request_consumer_;
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_controller_mac.mm ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698