| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ | 5 #ifndef APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ |
| 6 #define APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ | 6 #define APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/gfx/path.h" | 10 #include "ui/gfx/path.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Initializes this for the window |frame|. Sets the number of pixels for | 43 // Initializes this for the window |frame|. Sets the number of pixels for |
| 44 // which a click is interpreted as a resize for the inner and outer border of | 44 // which a click is interpreted as a resize for the inner and outer border of |
| 45 // the window and the lower-right corner resize handle. | 45 // the window and the lower-right corner resize handle. |
| 46 void Init(views::Widget* frame, | 46 void Init(views::Widget* frame, |
| 47 int resize_inside_bounds_size, | 47 int resize_inside_bounds_size, |
| 48 int resize_outside_bounds_size, | 48 int resize_outside_bounds_size, |
| 49 int resize_outside_scale_for_touch, | 49 int resize_outside_scale_for_touch, |
| 50 int resize_area_corner_size); | 50 int resize_area_corner_size); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Determines whether the title bar and window frame should be shown. |
| 54 bool ShouldShowWindowFrame() const; |
| 55 |
| 53 // views::NonClientFrameView implementation. | 56 // views::NonClientFrameView implementation. |
| 54 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 57 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 55 virtual gfx::Rect GetWindowBoundsForClientBounds( | 58 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 56 const gfx::Rect& client_bounds) const OVERRIDE; | 59 const gfx::Rect& client_bounds) const OVERRIDE; |
| 57 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 60 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 58 virtual void GetWindowMask(const gfx::Size& size, | 61 virtual void GetWindowMask(const gfx::Size& size, |
| 59 gfx::Path* window_mask) OVERRIDE; | 62 gfx::Path* window_mask) OVERRIDE; |
| 60 virtual void ResetWindowControls() OVERRIDE {} | 63 virtual void ResetWindowControls() OVERRIDE {} |
| 61 virtual void UpdateWindowIcon() OVERRIDE {} | 64 virtual void UpdateWindowIcon() OVERRIDE {} |
| 62 virtual void UpdateWindowTitle() OVERRIDE {} | 65 virtual void UpdateWindowTitle() OVERRIDE {} |
| (...skipping 22 matching lines...) Expand all Loading... |
| 85 | 88 |
| 86 // Size in pixels of the lower-right corner resize handle. | 89 // Size in pixels of the lower-right corner resize handle. |
| 87 int resize_area_corner_size_; | 90 int resize_area_corner_size_; |
| 88 | 91 |
| 89 DISALLOW_COPY_AND_ASSIGN(ShellWindowFrameView); | 92 DISALLOW_COPY_AND_ASSIGN(ShellWindowFrameView); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace apps | 95 } // namespace apps |
| 93 | 96 |
| 94 #endif // APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ | 97 #endif // APPS_UI_VIEWS_SHELL_WINDOW_FRAME_VIEW_H_ |
| OLD | NEW |