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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_common_win.cc

Issue 1869163003: Refactored GlassBrowserFrameView and BrowserDesktopTreeHostWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge error Created 4 years, 8 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/views/frame/browser_frame_common_win.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_common_win.cc b/chrome/browser/ui/views/frame/browser_frame_common_win.cc
deleted file mode 100644
index 269a668f3282c70a971a8da9ed7d4b178e5056ad..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/frame/browser_frame_common_win.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/views/frame/browser_frame_common_win.h"
-
-#include "chrome/browser/ui/views/frame/browser_view.h"
-#include "ui/base/theme_provider.h"
-
-namespace chrome {
-
-bool ShouldUseNativeFrame(const BrowserView* browser_view,
- const ui::ThemeProvider* theme_provider) {
- // We don't theme popup or app windows, so regardless of whether or not a
- // theme is active for normal browser windows, we don't want to use the custom
- // frame for popups/apps.
- if (!browser_view->IsBrowserTypeNormal()) {
- return true;
- }
- // Otherwise, we use the native frame when we're told we should by the theme
- // provider (e.g. no custom theme is active).
- return theme_provider->ShouldUseNativeFrame();
-}
-
-} // namespace browser
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_common_win.h ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698