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

Unified Diff: chrome/browser/ui/cocoa/themed_browser_window.mm

Issue 7734003: Implement basic theming for panel titlebars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/themed_browser_window.mm
diff --git a/chrome/browser/ui/cocoa/chrome_browser_window.mm b/chrome/browser/ui/cocoa/themed_browser_window.mm
similarity index 63%
copy from chrome/browser/ui/cocoa/chrome_browser_window.mm
copy to chrome/browser/ui/cocoa/themed_browser_window.mm
index e21507bdfc0cea40d36336736fe93efa54983ec4..363e6e95a7404186877a2e3597f58ef741f278cb 100644
--- a/chrome/browser/ui/cocoa/chrome_browser_window.mm
+++ b/chrome/browser/ui/cocoa/themed_browser_window.mm
@@ -2,31 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "chrome/browser/ui/cocoa/chrome_browser_window.h"
+#import "chrome/browser/ui/cocoa/themed_browser_window.h"
#include "base/logging.h"
#import "chrome/browser/ui/cocoa/themed_window.h"
#include "ui/base/theme_provider.h"
-@implementation ChromeBrowserWindow
-
-- (void)underlaySurfaceAdded {
- DCHECK_GE(underlaySurfaceCount_, 0);
- ++underlaySurfaceCount_;
-
- // We're having the OpenGL surface render under the window, so the window
- // needs to be not opaque.
- if (underlaySurfaceCount_ == 1)
- [self setOpaque:NO];
-}
-
-- (void)underlaySurfaceRemoved {
- --underlaySurfaceCount_;
- DCHECK_GE(underlaySurfaceCount_, 0);
-
- if (underlaySurfaceCount_ == 0)
- [self setOpaque:YES];
-}
+@implementation ThemedBrowserWindow
- (ui::ThemeProvider*)themeProvider {
id delegate = [self delegate];

Powered by Google App Engine
This is Rietveld 408576698