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

Side by Side Diff: ui/views/window/window_resources.h

Issue 10447053: Converts remainder of ui and chrome/browser/ui/views/frame to use ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « ui/views/window/frame_background.cc ('k') | no next file » | 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 UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ 5 #ifndef UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_
6 #define UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ 6 #define UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_
7 #pragma once 7 #pragma once
8 8
9 class SkBitmap; 9 namespace gfx {
10 class ImageSkia;
11 }
10 12
11 namespace views { 13 namespace views {
12 14
13 typedef int FramePartBitmap; 15 typedef int FramePartImage;
14 16
15 /////////////////////////////////////////////////////////////////////////////// 17 ///////////////////////////////////////////////////////////////////////////////
16 // WindowResources 18 // WindowResources
17 // 19 //
18 // An interface implemented by an object providing bitmaps to render the 20 // An interface implemented by an object providing images to render the
19 // contents of a window frame. The Window may swap in different 21 // contents of a window frame. The Window may swap in different
20 // implementations of this interface to render different modes. The definition 22 // implementations of this interface to render different modes. The definition
21 // of FramePartBitmap depends on the implementation. 23 // of FramePartImage depends on the implementation.
22 // 24 //
23 class WindowResources { 25 class WindowResources {
24 public: 26 public:
25 virtual ~WindowResources() {} 27 virtual ~WindowResources() {}
26 28
27 virtual SkBitmap* GetPartBitmap(FramePartBitmap part) const = 0; 29 virtual gfx::ImageSkia* GetPartImage(FramePartImage part) const = 0;
28 }; 30 };
29 31
30 } // namespace views 32 } // namespace views
31 33
32 #endif // UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_ 34 #endif // UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_
OLDNEW
« no previous file with comments | « ui/views/window/frame_background.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698