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

Side by Side Diff: chrome/browser/extensions/extension_shelf.h

Issue 113443: ChromeCanvas->gfx::Canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/extensions/extension_shelf.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTENSIONS_EXTENSION_SHELF_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SHELF_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SHELF_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SHELF_H_
7 7
8 #include "chrome/browser/extensions/extensions_service.h" 8 #include "chrome/browser/extensions/extensions_service.h"
9 #include "app/gfx/chrome_canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
11 #include "views/view.h" 11 #include "views/view.h"
12 12
13 class Browser; 13 class Browser;
14 14
15 class ExtensionShelf : public views::View, 15 class ExtensionShelf : public views::View,
16 public NotificationObserver { 16 public NotificationObserver {
17 public: 17 public:
18 explicit ExtensionShelf(Browser* browser); 18 explicit ExtensionShelf(Browser* browser);
19 virtual ~ExtensionShelf(); 19 virtual ~ExtensionShelf();
20 20
21 // View 21 // View
22 virtual void Paint(ChromeCanvas* canvas); 22 virtual void Paint(gfx::Canvas* canvas);
23 virtual gfx::Size GetPreferredSize(); 23 virtual gfx::Size GetPreferredSize();
24 virtual void Layout(); 24 virtual void Layout();
25 25
26 // NotificationService method. 26 // NotificationService method.
27 virtual void Observe(NotificationType type, 27 virtual void Observe(NotificationType type,
28 const NotificationSource& source, 28 const NotificationSource& source,
29 const NotificationDetails& details); 29 const NotificationDetails& details);
30 30
31 bool AddExtensionViews(const ExtensionList* extensions); 31 bool AddExtensionViews(const ExtensionList* extensions);
32 bool HasExtensionViews(); 32 bool HasExtensionViews();
33 33
34 protected: 34 protected:
35 // View 35 // View
36 virtual void ChildPreferredSizeChanged(View* child); 36 virtual void ChildPreferredSizeChanged(View* child);
37 37
38 private: 38 private:
39 // Inits the background bitmap. 39 // Inits the background bitmap.
40 void InitBackground(ChromeCanvas* canvas, const SkRect& subset); 40 void InitBackground(gfx::Canvas* canvas, const SkRect& subset);
41 41
42 Browser* browser_; 42 Browser* browser_;
43 43
44 // Background bitmap to draw under extension views. 44 // Background bitmap to draw under extension views.
45 SkBitmap background_; 45 SkBitmap background_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf); 47 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf);
48 }; 48 };
49 49
50 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SHELF_H_ 50 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SHELF_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/extensions/extension_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698