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

Side by Side Diff: athena/activity/activity_frame_view.h

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update NativeWidgetMac. Created 6 years, 3 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 | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | athena/activity/activity_frame_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ 5 #ifndef ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_
6 #define ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ 6 #define ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_
7 7
8 #include "athena/wm/public/window_manager_observer.h" 8 #include "athena/wm/public/window_manager_observer.h"
9 #include "ui/gfx/insets.h" 9 #include "ui/gfx/insets.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 21 matching lines...) Expand all
32 // views::NonClientFrameView: 32 // views::NonClientFrameView:
33 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 33 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
34 virtual gfx::Rect GetWindowBoundsForClientBounds( 34 virtual gfx::Rect GetWindowBoundsForClientBounds(
35 const gfx::Rect& client_bounds) const OVERRIDE; 35 const gfx::Rect& client_bounds) const OVERRIDE;
36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 36 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
37 virtual void GetWindowMask(const gfx::Size& size, 37 virtual void GetWindowMask(const gfx::Size& size,
38 gfx::Path* window_mask) OVERRIDE; 38 gfx::Path* window_mask) OVERRIDE;
39 virtual void ResetWindowControls() OVERRIDE; 39 virtual void ResetWindowControls() OVERRIDE;
40 virtual void UpdateWindowIcon() OVERRIDE; 40 virtual void UpdateWindowIcon() OVERRIDE;
41 virtual void UpdateWindowTitle() OVERRIDE; 41 virtual void UpdateWindowTitle() OVERRIDE;
42 virtual void SizeConstraintsChanged() OVERRIDE;
42 43
43 // views::View: 44 // views::View:
44 virtual gfx::Size GetPreferredSize() const OVERRIDE; 45 virtual gfx::Size GetPreferredSize() const OVERRIDE;
45 virtual const char* GetClassName() const OVERRIDE; 46 virtual const char* GetClassName() const OVERRIDE;
46 virtual void Layout() OVERRIDE; 47 virtual void Layout() OVERRIDE;
47 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 48 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
48 49
49 private: 50 private:
50 // WindowManagerObserver: 51 // WindowManagerObserver:
51 virtual void OnOverviewModeEnter() OVERRIDE; 52 virtual void OnOverviewModeEnter() OVERRIDE;
(...skipping 13 matching lines...) Expand all
65 66
66 // Whether overview mode is active. 67 // Whether overview mode is active.
67 bool in_overview_; 68 bool in_overview_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(ActivityFrameView); 70 DISALLOW_COPY_AND_ASSIGN(ActivityFrameView);
70 }; 71 };
71 72
72 } // namespace athena 73 } // namespace athena
73 74
74 #endif // ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_ 75 #endif // ATHENA_ACTIVITY_ACTIVITY_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | athena/activity/activity_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698