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]; |