OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" | 5 #include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h" |
6 | 6 |
7 #include "ui/gfx/compositor/layer.h" | 7 #include "ui/gfx/compositor/layer.h" |
8 #include "ui/views/desktop/desktop_window_view.h" | |
9 #include "views/controls/button/image_button.h" | 8 #include "views/controls/button/image_button.h" |
10 | 9 |
11 // static | 10 // static |
12 const char TouchBrowserFrameView::kViewClassName[] = | 11 const char TouchBrowserFrameView::kViewClassName[] = |
13 "browser/ui/touch/frame/TouchBrowserFrameView"; | 12 "browser/ui/touch/frame/TouchBrowserFrameView"; |
14 | 13 |
15 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
16 // TouchBrowserFrameView, public: | 15 // TouchBrowserFrameView, public: |
17 | 16 |
18 TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame, | 17 TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame, |
(...skipping 21 matching lines...) Expand all Loading... |
40 return true; | 39 return true; |
41 if (maximize_button()->IsVisible() && | 40 if (maximize_button()->IsVisible() && |
42 maximize_button()->GetMirroredBounds().Contains(point)) | 41 maximize_button()->GetMirroredBounds().Contains(point)) |
43 return true; | 42 return true; |
44 if (minimize_button()->IsVisible() && | 43 if (minimize_button()->IsVisible() && |
45 minimize_button()->GetMirroredBounds().Contains(point)) | 44 minimize_button()->GetMirroredBounds().Contains(point)) |
46 return true; | 45 return true; |
47 | 46 |
48 return false; | 47 return false; |
49 } | 48 } |
OLD | NEW |