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

Side by Side Diff: ui/views/widget/native_widget_private.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_aura.cc ('k') | ui/views/widget/native_widget_win.h » ('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_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/views/ime/input_method_delegate.h" 12 #include "ui/views/ime/input_method_delegate.h"
13 #include "ui/views/widget/native_widget.h" 13 #include "ui/views/widget/native_widget.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class ImageSkia;
16 class Rect; 17 class Rect;
17 } 18 }
18 19
19 namespace ui { 20 namespace ui {
20 class OSExchangeData; 21 class OSExchangeData;
21 } 22 }
22 23
23 namespace views { 24 namespace views {
24 class InputMethod; 25 class InputMethod;
25 class TooltipManager; 26 class TooltipManager;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual void GetWindowPlacement( 144 virtual void GetWindowPlacement(
144 gfx::Rect* bounds, 145 gfx::Rect* bounds,
145 ui::WindowShowState* show_state) const = 0; 146 ui::WindowShowState* show_state) const = 0;
146 147
147 // Sets the NativeWindow title. 148 // Sets the NativeWindow title.
148 virtual void SetWindowTitle(const string16& title) = 0; 149 virtual void SetWindowTitle(const string16& title) = 0;
149 150
150 // Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in 151 // Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in
151 // a title bar. |app_icon| is a larger size for use in the host environment 152 // a title bar. |app_icon| is a larger size for use in the host environment
152 // app switching UI. 153 // app switching UI.
153 virtual void SetWindowIcons(const SkBitmap& window_icon, 154 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon,
154 const SkBitmap& app_icon) = 0; 155 const gfx::ImageSkia& app_icon) = 0;
155 156
156 // Update native accessibility properties on the native window. 157 // Update native accessibility properties on the native window.
157 virtual void SetAccessibleName(const string16& name) = 0; 158 virtual void SetAccessibleName(const string16& name) = 0;
158 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) = 0; 159 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) = 0;
159 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) = 0; 160 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) = 0;
160 161
161 // Initializes the modal type of the window to |modal_type|. Called from 162 // Initializes the modal type of the window to |modal_type|. Called from
162 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is 163 // NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is
163 // initially parented. 164 // initially parented.
164 virtual void InitModalType(ui::ModalType modal_type) = 0; 165 virtual void InitModalType(ui::ModalType modal_type) = 0;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; 213 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0;
213 214
214 // Overridden from NativeWidget: 215 // Overridden from NativeWidget:
215 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 216 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
216 }; 217 };
217 218
218 } // namespace internal 219 } // namespace internal
219 } // namespace views 220 } // namespace views
220 221
221 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 222 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698