| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
BUG=138542
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/1547893002
Cr-Commit-Position: refs/heads/master@{#366729}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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}
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/8497054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109681 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
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
|