diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 21:46:03 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 21:46:03 +0000 |
commit | d78e615e38a310f971c61450bc31d626df4ce744 (patch) | |
tree | ee4725c279ec65d341d7c30c7b58c60b6d5eb100 /chrome/app/nibs | |
parent | 7398dcc10a8029cfee85882f629e702449cc16b3 (diff) | |
download | chromium_src-d78e615e38a310f971c61450bc31d626df4ce744.zip chromium_src-d78e615e38a310f971c61450bc31d626df4ce744.tar.gz chromium_src-d78e615e38a310f971c61450bc31d626df4ce744.tar.bz2 |
Implement basic theming for panel titlebars.
This patch adds the plumbing to use the theme provider for panel windows:
- Updated the xib so the created window is a ThemedBrowserWindow, which knows how to delegate theming related calls to the window delegate.
- Implemented -[ThemedWindow themeProvider] for PanelWindowController.
BUG=none
TEST=no more yellow panel titlebars.
Review URL: http://codereview.chromium.org/7734003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/nibs')
-rw-r--r-- | chrome/app/nibs/Panel.xib | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/app/nibs/Panel.xib b/chrome/app/nibs/Panel.xib index f2a2561..b6fceaa 100644 --- a/chrome/app/nibs/Panel.xib +++ b/chrome/app/nibs/Panel.xib @@ -45,7 +45,7 @@ <string key="NSWindowRect">{{196, 240}, {480, 270}}</string> <int key="NSWTFlags">544736256</int> <string key="NSWindowTitle">Window</string> - <string key="NSWindowClass">ChromeEventProcessingWindow</string> + <string key="NSWindowClass">ThemedBrowserWindow</string> <nil key="NSViewClass"/> <string key="NSWindowContentMaxSize">{1.79769e+308, 1.79769e+308}</string> <object class="NSView" key="NSWindowView" id="1006"> @@ -351,6 +351,14 @@ <string key="minorKey"/> </object> </object> + <object class="IBPartialClassDescription"> + <string key="className">ThemedBrowserWindow</string> + <string key="superclassName">ChromeEventProcessingWindow</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> </object> <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> <bool key="EncodedWithXMLCoder">YES</bool> |