| 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" |
| 8 #include "ui/views/desktop/desktop_window_view.h" |
| 7 #include "views/controls/button/image_button.h" | 9 #include "views/controls/button/image_button.h" |
| 8 #include "views/desktop/desktop_window_view.h" | |
| 9 #include "ui/gfx/compositor/layer.h" | |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 const char TouchBrowserFrameView::kViewClassName[] = | 12 const char TouchBrowserFrameView::kViewClassName[] = |
| 13 "browser/ui/touch/frame/TouchBrowserFrameView"; | 13 "browser/ui/touch/frame/TouchBrowserFrameView"; |
| 14 | 14 |
| 15 /////////////////////////////////////////////////////////////////////////////// | 15 /////////////////////////////////////////////////////////////////////////////// |
| 16 // TouchBrowserFrameView, public: | 16 // TouchBrowserFrameView, public: |
| 17 | 17 |
| 18 TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame, | 18 TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame, |
| 19 BrowserView* browser_view) | 19 BrowserView* browser_view) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 return true; | 40 return true; |
| 41 if (maximize_button()->IsVisible() && | 41 if (maximize_button()->IsVisible() && |
| 42 maximize_button()->GetMirroredBounds().Contains(point)) | 42 maximize_button()->GetMirroredBounds().Contains(point)) |
| 43 return true; | 43 return true; |
| 44 if (minimize_button()->IsVisible() && | 44 if (minimize_button()->IsVisible() && |
| 45 minimize_button()->GetMirroredBounds().Contains(point)) | 45 minimize_button()->GetMirroredBounds().Contains(point)) |
| 46 return true; | 46 return true; |
| 47 | 47 |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| OLD | NEW |