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

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

Issue 6975037: Revert 85666 - Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/frame/popup_non_client_frame_view.h ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/popup_non_client_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/popup_non_client_frame_view.cc (revision 85701)
+++ chrome/browser/ui/views/frame/popup_non_client_frame_view.cc (working copy)
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/views/frame/popup_non_client_frame_view.h"
-#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
@@ -13,14 +12,18 @@
#include "views/window/hit_test.h"
#endif
-PopupNonClientFrameView::PopupNonClientFrameView(BrowserFrame* frame) {
- frame->set_frame_type(views::Window::FRAME_TYPE_FORCE_NATIVE);
-}
-
gfx::Rect PopupNonClientFrameView::GetBoundsForClientView() const {
return gfx::Rect(0, 0, width(), height());
}
+bool PopupNonClientFrameView::AlwaysUseCustomFrame() const {
+ return false;
+}
+
+bool PopupNonClientFrameView::AlwaysUseNativeFrame() const {
+ return true;
+}
+
gfx::Rect PopupNonClientFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
return client_bounds;
« no previous file with comments | « chrome/browser/ui/views/frame/popup_non_client_frame_view.h ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698