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

Side by Side Diff: ui/views/linux_ui/linux_ui.h

Issue 243633003: use the right NativeTheme on bubbles + dialogs on Aura Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: good enough for now Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LINUX_UI_LINUX_UI_H_ 5 #ifndef UI_VIEWS_LINUX_UI_LINUX_UI_H_
6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_ 6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/base/ime/linux/linux_input_method_context_factory.h" 11 #include "ui/base/ime/linux/linux_input_method_context_factory.h"
12 #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" 12 #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h"
13 #include "ui/gfx/linux_font_delegate.h" 13 #include "ui/gfx/linux_font_delegate.h"
14 #include "ui/shell_dialogs/linux_shell_dialog.h" 14 #include "ui/shell_dialogs/linux_shell_dialog.h"
15 #include "ui/views/controls/button/button.h" 15 #include "ui/views/controls/button/button.h"
16 #include "ui/views/linux_ui/status_icon_linux.h" 16 #include "ui/views/linux_ui/status_icon_linux.h"
17 #include "ui/views/views_export.h" 17 #include "ui/views/views_export.h"
18 18
19 // The main entrypoint into Linux toolkit specific code. GTK code should only 19 // The main entrypoint into Linux toolkit specific code. GTK code should only
20 // be executed behind this interface. 20 // be executed behind this interface.
21 21
22 namespace aura {
23 class Window;
24 }
25
22 namespace gfx { 26 namespace gfx {
23 class Image; 27 class Image;
24 } 28 }
25 29
26 namespace ui { 30 namespace ui {
27 class NativeTheme; 31 class NativeTheme;
28 } 32 }
29 33
30 namespace views { 34 namespace views {
31 class Border; 35 class Border;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual SkColor GetThumbInactiveColor() const = 0; 84 virtual SkColor GetThumbInactiveColor() const = 0;
81 virtual SkColor GetTrackColor() const = 0; 85 virtual SkColor GetTrackColor() const = 0;
82 virtual SkColor GetActiveSelectionBgColor() const = 0; 86 virtual SkColor GetActiveSelectionBgColor() const = 0;
83 virtual SkColor GetActiveSelectionFgColor() const = 0; 87 virtual SkColor GetActiveSelectionFgColor() const = 0;
84 virtual SkColor GetInactiveSelectionBgColor() const = 0; 88 virtual SkColor GetInactiveSelectionBgColor() const = 0;
85 virtual SkColor GetInactiveSelectionFgColor() const = 0; 89 virtual SkColor GetInactiveSelectionFgColor() const = 0;
86 virtual double GetCursorBlinkInterval() const = 0; 90 virtual double GetCursorBlinkInterval() const = 0;
87 91
88 // Returns a NativeTheme that will provide system colors and draw system 92 // Returns a NativeTheme that will provide system colors and draw system
89 // style widgets. 93 // style widgets.
90 virtual ui::NativeTheme* GetNativeTheme() const = 0; 94 virtual ui::NativeTheme* GetNativeTheme(aura::Window* window) const = 0;
91 95
92 // Returns whether we should be using the native theme provided by this 96 // Returns whether we should be using the native theme provided by this
93 // object by default. 97 // object by default.
94 virtual bool GetDefaultUsesSystemTheme() const = 0; 98 virtual bool GetDefaultUsesSystemTheme() const = 0;
95 99
96 // Sets visual properties in the desktop environment related to download 100 // Sets visual properties in the desktop environment related to download
97 // progress, if available. 101 // progress, if available.
98 virtual void SetDownloadCount(int count) const = 0; 102 virtual void SetDownloadCount(int count) const = 0;
99 virtual void SetProgressFraction(float percentage) const = 0; 103 virtual void SetProgressFraction(float percentage) const = 0;
100 104
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Notifies the window manager that start up has completed. 147 // Notifies the window manager that start up has completed.
144 // Normally Chromium opens a new window on startup and GTK does this 148 // Normally Chromium opens a new window on startup and GTK does this
145 // automatically. In case Chromium does not open a new window on startup, 149 // automatically. In case Chromium does not open a new window on startup,
146 // e.g. an existing browser window already exists, this should be called. 150 // e.g. an existing browser window already exists, this should be called.
147 virtual void NotifyWindowManagerStartupComplete() = 0; 151 virtual void NotifyWindowManagerStartupComplete() = 0;
148 }; 152 };
149 153
150 } // namespace views 154 } // namespace views
151 155
152 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ 156 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698