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

Side by Side Diff: ui/views/window/custom_frame_view.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/widget/widget_delegate.cc ('k') | ui/views/window/custom_frame_view.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) 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 UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/views/controls/button/button.h" 12 #include "ui/views/controls/button/button.h"
13 #include "ui/views/window/non_client_view.h" 13 #include "ui/views/window/non_client_view.h"
14 14
15 class SkBitmap; 15 namespace gfx {
16 class ImageSkia;
17 }
16 18
17 namespace views { 19 namespace views {
18 20
19 class FrameBackground; 21 class FrameBackground;
20 class ImageButton; 22 class ImageButton;
21 class Widget; 23 class Widget;
22 24
23 /////////////////////////////////////////////////////////////////////////////// 25 ///////////////////////////////////////////////////////////////////////////////
24 // 26 //
25 // CustomFrameView 27 // CustomFrameView
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool ShouldShowClientEdge() const; 89 bool ShouldShowClientEdge() const;
88 90
89 // Paint various sub-components of this view. 91 // Paint various sub-components of this view.
90 void PaintRestoredFrameBorder(gfx::Canvas* canvas); 92 void PaintRestoredFrameBorder(gfx::Canvas* canvas);
91 void PaintMaximizedFrameBorder(gfx::Canvas* canvas); 93 void PaintMaximizedFrameBorder(gfx::Canvas* canvas);
92 void PaintTitleBar(gfx::Canvas* canvas); 94 void PaintTitleBar(gfx::Canvas* canvas);
93 void PaintRestoredClientEdge(gfx::Canvas* canvas); 95 void PaintRestoredClientEdge(gfx::Canvas* canvas);
94 96
95 // Compute aspects of the frame needed to paint the frame background. 97 // Compute aspects of the frame needed to paint the frame background.
96 SkColor GetFrameColor() const; 98 SkColor GetFrameColor() const;
97 const SkBitmap* GetFrameBitmap() const; 99 const gfx::ImageSkia* GetFrameImage() const;
98 100
99 // Layout various sub-components of this view. 101 // Layout various sub-components of this view.
100 void LayoutWindowControls(); 102 void LayoutWindowControls();
101 void LayoutTitleBar(); 103 void LayoutTitleBar();
102 void LayoutClientView(); 104 void LayoutClientView();
103 105
104 // Creates, adds and returns a new window caption button (e.g, minimize, 106 // Creates, adds and returns a new window caption button (e.g, minimize,
105 // maximize, restore). 107 // maximize, restore).
106 ImageButton* InitWindowCaptionButton(int accessibility_string_id, 108 ImageButton* InitWindowCaptionButton(int accessibility_string_id,
107 int normal_image_id, 109 int normal_image_id,
(...skipping 24 matching lines...) Expand all
132 134
133 // Background painter for the window frame. 135 // Background painter for the window frame.
134 scoped_ptr<FrameBackground> frame_background_; 136 scoped_ptr<FrameBackground> frame_background_;
135 137
136 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 138 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
137 }; 139 };
138 140
139 } // namespace views 141 } // namespace views
140 142
141 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 143 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget_delegate.cc ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698