summaryrefslogtreecommitdiffstats
path: root/ui/base/theme_provider.h
Commit message (Collapse)AuthorAgeFilesLines
* Switch to standard integer types in ui/base/.avi2015-12-231-1/+1
| | | | | | | | | BUG=138542 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/1547893002 Cr-Commit-Position: refs/heads/master@{#366729}
* Rejigger ThemeService: move exposure of ThemeProvider interface to aestade2015-12-111-4/+6
| | | | | | | | | | | | | | | | | | | | | separate class. ThemeService provides a static way to get a ThemeProvider from a profile. This allows different ThemeProviders for different profiles (i.e. otr + original), while the majority of ThemeService remains per original profile. As a bonus, UsingSystemTheme is moved from ThemeProvider to ThemeService, where it seems more natural. It's still part of ThemeProvider on OSX, but only because updating OSX will require more effort (and more care). One new incognito color is implemented (for MD mode): COLOR_TOOLBAR. This is ironically not yet visible on the toolbar, but you can see it on the DL shelf. BUG=501377, 568388 Review URL: https://codereview.chromium.org/1492423003 Cr-Commit-Position: refs/heads/master@{#364812}
* MacViews: Remove "redundant" #ifdef guards in ui/base/theme_provider* filestapted@chromium.org2014-07-161-1/+1
| | | | | | | | | | | | Some `#if mac && !views` guards have been here for over a year (since r202283). Mac implies !views so they're currently redundant. But of course MacViews actually needs this code. BUG=390755 Review URL: https://codereview.chromium.org/391053002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283369 0039d316-1c4b-4281-b951-d872f2087c98
* Improve some namingestade@chromium.org2014-05-131-2/+2
| | | | | | | | | | "Native" theme is sometimes synonymous with "system" theme, and sometimes not. Change some uses of "native" to "system" to avoid confusion with the class called NativeTheme. BUG=none Review URL: https://codereview.chromium.org/244893004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269985 0039d316-1c4b-4281-b951-d872f2087c98
* Remove non USE_AURA code from views files.erg@chromium.org2014-04-251-15/+0
| | | | | | | | BUG=330735 Review URL: https://codereview.chromium.org/246633004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266059 0039d316-1c4b-4281-b951-d872f2087c98
* linux_aura: Keep GTK state from leaking between profiles.erg@chromium.org2014-02-191-0/+4
| | | | | | | | | | | | | | | The views::LinuxUI* object is global across profiles. However, it stored profile specific state in the form of a |use_gtk_| variable. This fixes Gtk2Borders so that they ask their owning view for a ThemeProvider and expands the ui::ThemeProvider interface so that it exposes the UsingNativeTheme() call from the ThemeService layer, instead of asking the views::LinuxUI provider directly, which will likely return stale state. BUG=340805, 340799 Review URL: https://codereview.chromium.org/171413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252085 0039d316-1c4b-4281-b951-d872f2087c98
* ui: Rename ui_export.h to ui_base_export.htfarina@chromium.org2014-01-061-2/+2
| | | | | | | | | | | | Also renames UI_EXPORT to UI_BASE_EXPORT. BUG=299841 TEST=None, no functional changes TBR=ben@chromium.org Review URL: https://codereview.chromium.org/93863005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243050 0039d316-1c4b-4281-b951-d872f2087c98
* This CL makes managed users use the normal Google logo on the ↵pkotwicz@chromium.org2013-08-301-1/+1
| | | | | | | | | | | | | | | --enable-instant-extended-api NTP. I also changed the signature of ui::ThemeProvider::GetDisplayProperty() because most of the callers were ignoring the return value. In some cases we were using uninitialized variables because of this. BUG=279978 TEST=Manual, see bug R=erg TBR=sky (For trivial refactor) Review URL: https://chromiumcodereview.appspot.com/23614007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220537 0039d316-1c4b-4281-b951-d872f2087c98
* Remove mostly unused |allow_default| parameter in ui::ThemeProviderpkotwicz@chromium.org2013-08-071-16/+4
| | | | | | | | | | | | | | | | | | | All the callers of ui::ThemeProvider::GetNSColor(), ui::ThemeProvider::GetNSColorTint(), ui::ThemeProvider::GetNSImageNamed() always pass |allow_default| as true. Some callers of ui::ThemeProvider::GetNSImageColorNamed() pass false. However, those cases can be handled by checking ui::ThemeProvider::HasCustomImage(). R=rsesek TBR=sky (for refactoring changes to ui/base/theme_provider.h and ui/base/default_theme_provider.h) BUG=None Test=None Review URL: https://chromiumcodereview.appspot.com/22524002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216312 0039d316-1c4b-4281-b951-d872f2087c98
* This CL removes ResourceBundle::GetBitmapNamed() and ↵pkotwicz@chromium.org2012-10-091-6/+0
| | | | | | | | | | | | | | ThemeProvider::GetBitmapNamed() BUG=153180 Test=Compiles R=sail,erg TBR=sky Review URL: https://chromiumcodereview.appspot.com/11015007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160789 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome does not support hidpi themes other than the default.pkotwicz@chromium.org2012-08-051-1/+4
| | | | | | | | | | | | | | | | | | | | However, Chrome generates images which are a combination of the toolbar icon from the default theme + a tint. Added the ability for themes to store hidpi assets in the data pack such that the few hidpi assets which are generated are preserved when a user closes Chrome and reopens it. Repro steps/steps for testing: 1) Run chrome with --force-device-scale-factor=2 2) Change the theme. 3) Close Chrome and relaunch with --force-device-scale-factor=2 4) Ensure that the toolbar buttons are still hidpi Test=Manual, see instructions above Bug=136888 Review URL: https://chromiumcodereview.appspot.com/10783015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150054 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetImageSkiaNamed to resource_bundle and theme_provider.pkotwicz@chromium.org2012-05-111-0/+10
| | | | | | | | | | | This makes converting use of SkBitmap into ImageSkia easier Bug=124566 Test=Manual Review URL: https://chromiumcodereview.appspot.com/10388064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136470 0039d316-1c4b-4281-b951-d872f2087c98
* Move RefCountedMemory Class to Base namespacesimon.hong81@gmail.com2012-05-021-2/+5
| | | | | | | | | BUG=none TEST=compiles chrome, browser_tests and ui_tests Review URL: http://codereview.chromium.org/10272004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135011 0039d316-1c4b-4281-b951-d872f2087c98
* ui/base: Remove the dependency in Profile from ThemeProvider.tfarina@chromium.org2012-02-271-5/+0
| | | | | | | | | | | | NOTE: This was a TODO for ben@. BUG=80197 R=ben@chromium.org TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/9460039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123707 0039d316-1c4b-4281-b951-d872f2087c98
* Aura Shell needs to exist on Macdhollowa@chromium.org2012-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds first cut at "Aura Shell.app" on Mac. The 'ash_shell' is extended to generate a Cocoa application. This application brings up a single window containing the Aura desktop. The main view of this window provides an accelerated surface to Aura in which it can composite and draw its results. What works: - The application launches and renders the Aura desktop and background - Mouse movement, clicking, double-clicking, and interactions with Aura windows and widgets - Text buttons render with Skia text (needs improvement) - Non-modal transient window button - Window-modal window button - System-modal window button - Example Widgets button (checkboxes, radios, buttons) - Lock Screen button - Create Non-Resizable window button - Create Pointy Bubble button - Create Widow button - Switcher and Taskbar What doesn't work: - Open Views Examples Window button - Views menus - Views scrollbars - Views accelerators - Views tooltips - Drag and drop - Anything involving MessageLoop dispatcher logic - Mouse movement doesn't pass through to Aura when mouse button is up Note: Required .gyp flags are: 'use_aura': 1, 'use_webkit_compositor': 1, BUG=109946 TEST=Manual tests. R=sky@chromium.org, thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/9232028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118222 0039d316-1c4b-4281-b951-d872f2087c98
* GTK: Prune out GetPixbufNamed() and move callers to the cross platform ↵erg@chromium.org2011-12-141-1/+0
| | | | | | | | | | | | GetImageNamed(). BUG=106060 TEST=none Review URL: http://codereview.chromium.org/8937012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114322 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream: ui implementation in Androidmichaelbai@chromium.org2011-11-111-1/+1
| | | | | | Review URL: http://codereview.chromium.org/8497054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109681 0039d316-1c4b-4281-b951-d872f2087c98
* Rename UI_API to UI_EXPORT.darin@chromium.org2011-08-061-2/+2
| | | | | | | R=rvargas@chromium.org Review URL: http://codereview.chromium.org/7569005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95730 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce ui.dll / libui.so for the component build.darin@chromium.org2011-07-171-1/+2
| | | | | | | R=ben@chromium.org Review URL: http://codereview.chromium.org/7328011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92819 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of random other files to src/ui/baseben@chromium.org2011-01-201-0/+120
BUG=none TEST=none TBR=brettw Review URL: http://codereview.chromium.org/6257006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71970 0039d316-1c4b-4281-b951-d872f2087c98