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

Side by Side Diff: ash/wm/custom_frame_view_ash.h

Issue 183793011: App windows on ChromeOS cannot be sized to their maximum height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@appwindow_chromeos_insets
Patch Set: Addressed review comments Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 5 #ifndef ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual gfx::Size GetMinimumSize() OVERRIDE; 58 virtual gfx::Size GetMinimumSize() OVERRIDE;
59 virtual gfx::Size GetMaximumSize() OVERRIDE; 59 virtual gfx::Size GetMaximumSize() OVERRIDE;
60 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; 60 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE;
61 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 61 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
62 62
63 // Get the view of the header. 63 // Get the view of the header.
64 views::View* GetHeaderView(); 64 views::View* GetHeaderView();
65 65
66 private: 66 private:
67 class OverlayView; 67 class OverlayView;
68 friend class TestWidgetConstraintsDelegate;
68 69
69 // Height from top of window to top of client area. 70 // Height from top of window to top of client area.
70 int NonClientTopBorderHeight() const; 71 int NonClientTopBorderHeight() const;
71 72
72 // Not owned. 73 // Not owned.
73 views::Widget* frame_; 74 views::Widget* frame_;
74 75
75 // View which contains the title and window controls. 76 // View which contains the title and window controls.
76 class HeaderView; 77 class HeaderView;
77 HeaderView* header_view_; 78 HeaderView* header_view_;
78 79
79 // Updates the hittest bounds overrides based on the window state type. 80 // Updates the hittest bounds overrides based on the window state type.
80 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; 81 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); 83 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh);
83 }; 84 };
84 85
85 } // namespace ash 86 } // namespace ash
86 87
87 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ 88 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/custom_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698