OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/views/frame/popup_non_client_frame_view.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "chrome/browser/views/tabs/base_tab_strip.h" |
| 9 #include "gfx/point.h" |
| 10 #include "gfx/rect.h" |
| 11 #include "gfx/size.h" |
| 12 |
| 13 #if defined(OS_LINUX) |
| 14 #include "views/window/hit_test.h" |
| 15 #endif |
| 16 |
| 17 gfx::Rect PopupNonClientFrameView::GetBoundsForClientView() const { |
| 18 return gfx::Rect(0, 0, width(), height()); |
| 19 } |
| 20 |
| 21 bool PopupNonClientFrameView::AlwaysUseCustomFrame() const { |
| 22 return false; |
| 23 } |
| 24 |
| 25 bool PopupNonClientFrameView::AlwaysUseNativeFrame() const { |
| 26 return true; |
| 27 } |
| 28 |
| 29 gfx::Rect PopupNonClientFrameView::GetWindowBoundsForClientBounds( |
| 30 const gfx::Rect& client_bounds) const { |
| 31 return client_bounds; |
| 32 } |
| 33 |
| 34 int PopupNonClientFrameView::NonClientHitTest(const gfx::Point& point) { |
| 35 return bounds().Contains(point) ? HTCLIENT : HTNOWHERE; |
| 36 } |
| 37 |
| 38 void PopupNonClientFrameView::GetWindowMask(const gfx::Size& size, |
| 39 gfx::Path* window_mask) { |
| 40 } |
| 41 |
| 42 void PopupNonClientFrameView::EnableClose(bool enable) { |
| 43 } |
| 44 |
| 45 void PopupNonClientFrameView::ResetWindowControls() { |
| 46 } |
| 47 |
| 48 gfx::Rect PopupNonClientFrameView::GetBoundsForTabStrip( |
| 49 BaseTabStrip* tabstrip) const { |
| 50 return gfx::Rect(0, 0, width(), tabstrip->GetPreferredHeight()); |
| 51 } |
| 52 |
| 53 void PopupNonClientFrameView::UpdateThrobber(bool running) { |
| 54 } |
OLD | NEW |