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

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

Issue 577018: Support app menu and double-click close on upper left corner of window, part ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 10 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/glass_browser_frame_view.cc
===================================================================
--- chrome/browser/views/frame/glass_browser_frame_view.cc (revision 38171)
+++ chrome/browser/views/frame/glass_browser_frame_view.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -150,26 +150,6 @@
client_bounds.height() + top_height + border_thickness);
}
-gfx::Point GlassBrowserFrameView::GetSystemMenuPoint() const {
- views::Window* window = frame_->GetWindow();
- gfx::Point system_menu_point;
- if (browser_view_->IsBrowserTypeNormal()) {
- // The X coordinate conditional is because in maximized mode the frame edge
- // and the client edge are both offscreen, whereas in the opaque frame
- // (where we don't do this trick) maximized windows have no client edge and
- // only the frame edge is offscreen.
- system_menu_point.SetPoint(NonClientBorderThickness() -
- ((window->IsMaximized() || window->IsFullscreen()) ?
- 0 : kClientEdgeThickness),
- NonClientTopBorderHeight() + browser_view_->GetTabStripHeight() -
- (frame_->GetWindow()->IsFullscreen() ? 0 : kClientEdgeThickness));
- } else {
- system_menu_point.SetPoint(0, -kFrameShadowThickness);
- }
- ConvertPointToScreen(this, &system_menu_point);
- return system_menu_point;
-}
-
int GlassBrowserFrameView::NonClientHitTest(const gfx::Point& point) {
// If the browser isn't in normal mode, we haven't customized the frame, so
// Windows can figure this out. If the point isn't within our bounds, then

Powered by Google App Engine
This is Rietveld 408576698