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

Side by Side Diff: ui/views/widget/widget_delegate.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/native_widget_win.cc ('k') | ui/views/widget/widget_delegate.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_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "ui/base/accessibility/accessibility_types.h" 11 #include "ui/base/accessibility/accessibility_types.h"
12 #include "ui/base/ui_base_types.h" 12 #include "ui/base/ui_base_types.h"
13 #include "ui/views/view.h" 13 #include "ui/views/view.h"
14 14
15 class SkBitmap;
16
17 namespace gfx { 15 namespace gfx {
16 class ImageSkia;
18 class Rect; 17 class Rect;
19 } 18 }
20 19
21 namespace views { 20 namespace views {
22 class BubbleDelegateView; 21 class BubbleDelegateView;
23 class ClientView; 22 class ClientView;
24 class DialogDelegate; 23 class DialogDelegate;
25 class NonClientFrameView; 24 class NonClientFrameView;
26 class View; 25 class View;
27 class Widget; 26 class Widget;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual string16 GetAccessibleWindowTitle() const; 72 virtual string16 GetAccessibleWindowTitle() const;
74 73
75 // Returns the text to be displayed in the window title. 74 // Returns the text to be displayed in the window title.
76 virtual string16 GetWindowTitle() const; 75 virtual string16 GetWindowTitle() const;
77 76
78 // Returns true if the window should show a title in the title bar. 77 // Returns true if the window should show a title in the title bar.
79 virtual bool ShouldShowWindowTitle() const; 78 virtual bool ShouldShowWindowTitle() const;
80 79
81 // Returns the app icon for the window. On Windows, this is the ICON_BIG used 80 // Returns the app icon for the window. On Windows, this is the ICON_BIG used
82 // in Alt-Tab list and Win7's taskbar. 81 // in Alt-Tab list and Win7's taskbar.
83 virtual SkBitmap GetWindowAppIcon(); 82 virtual gfx::ImageSkia GetWindowAppIcon();
84 83
85 // Returns the icon to be displayed in the window. 84 // Returns the icon to be displayed in the window.
86 virtual SkBitmap GetWindowIcon(); 85 virtual gfx::ImageSkia GetWindowIcon();
87 86
88 // Returns true if a window icon should be shown. 87 // Returns true if a window icon should be shown.
89 virtual bool ShouldShowWindowIcon() const; 88 virtual bool ShouldShowWindowIcon() const;
90 89
91 // Execute a command in the window's controller. Returns true if the command 90 // Execute a command in the window's controller. Returns true if the command
92 // was handled, false if it was not. 91 // was handled, false if it was not.
93 virtual bool ExecuteWindowsCommand(int command_id); 92 virtual bool ExecuteWindowsCommand(int command_id);
94 93
95 // Returns the window's name identifier. Used to identify this window for 94 // Returns the window's name identifier. Used to identify this window for
96 // state restoration. 95 // state restoration.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual Widget* GetWidget() OVERRIDE; 167 virtual Widget* GetWidget() OVERRIDE;
169 virtual const Widget* GetWidget() const OVERRIDE; 168 virtual const Widget* GetWidget() const OVERRIDE;
170 169
171 private: 170 private:
172 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 171 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
173 }; 172 };
174 173
175 } // namespace views 174 } // namespace views
176 175
177 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 176 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698