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

Unified Diff: chrome/browser/views/frame/opaque_browser_frame_view.cc

Issue 1727009: Always use opaque frame for extension app windows (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: now it actually works Created 10 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/views/frame/opaque_browser_frame_view.cc
diff --git a/chrome/browser/views/frame/opaque_browser_frame_view.cc b/chrome/browser/views/frame/opaque_browser_frame_view.cc
index af74018c8d9ca7230f09514ffb6d5e070db96221..5014ef428cb7e98f767307df9254438e4654ebb6 100644
--- a/chrome/browser/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/views/frame/opaque_browser_frame_view.cc
@@ -261,6 +261,10 @@ bool OpaqueBrowserFrameView::AlwaysUseNativeFrame() const {
return frame_->AlwaysUseNativeFrame();
}
+bool OpaqueBrowserFrameView::AlwaysUseCustomFrame() const {
+ return true;
+}
+
gfx::Rect OpaqueBrowserFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
int top_height = NonClientTopBorderHeight();

Powered by Google App Engine
This is Rietveld 408576698