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

Side by Side Diff: athena/main/athena_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
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_COMMON_ATHENA_FRAME_VIEW_H_ 5 #ifndef ATHENA_COMMON_ATHENA_FRAME_VIEW_H_
6 #define ATHENA_COMMON_ATHENA_FRAME_VIEW_H_ 6 #define ATHENA_COMMON_ATHENA_FRAME_VIEW_H_
7 7
8 #include "ui/views/window/non_client_view.h" 8 #include "ui/views/window/non_client_view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 15 matching lines...) Expand all
26 // views::NonClientFrameView overrides: 26 // views::NonClientFrameView overrides:
27 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 27 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
28 virtual gfx::Rect GetWindowBoundsForClientBounds( 28 virtual gfx::Rect GetWindowBoundsForClientBounds(
29 const gfx::Rect& client_bounds) const OVERRIDE; 29 const gfx::Rect& client_bounds) const OVERRIDE;
30 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 30 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
31 virtual void GetWindowMask(const gfx::Size& size, 31 virtual void GetWindowMask(const gfx::Size& size,
32 gfx::Path* window_mask) OVERRIDE {} 32 gfx::Path* window_mask) OVERRIDE {}
33 virtual void ResetWindowControls() OVERRIDE {} 33 virtual void ResetWindowControls() OVERRIDE {}
34 virtual void UpdateWindowIcon() OVERRIDE {} 34 virtual void UpdateWindowIcon() OVERRIDE {}
35 virtual void UpdateWindowTitle() OVERRIDE {} 35 virtual void UpdateWindowTitle() OVERRIDE {}
36 virtual void SizeConstraintsChanged() OVERRIDE {}
36 37
37 // views::View overrides: 38 // views::View overrides:
38 virtual gfx::Size GetPreferredSize() const OVERRIDE; 39 virtual gfx::Size GetPreferredSize() const OVERRIDE;
39 virtual const char* GetClassName() const OVERRIDE; 40 virtual const char* GetClassName() const OVERRIDE;
40 virtual void Layout() OVERRIDE {} 41 virtual void Layout() OVERRIDE {}
41 42
42 private: 43 private:
43 gfx::Insets NonClientBorderInsets() const; 44 gfx::Insets NonClientBorderInsets() const;
44 45
45 virtual int NonClientTopBorderHeight() const; 46 virtual int NonClientTopBorderHeight() const;
46 virtual int NonClientBorderThickness() const; 47 virtual int NonClientBorderThickness() const;
47 48
48 // Not owned. 49 // Not owned.
49 views::Widget* frame_; 50 views::Widget* frame_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(AthenaFrameView); 52 DISALLOW_COPY_AND_ASSIGN(AthenaFrameView);
52 }; 53 };
53 54
54 } // namespace athena 55 } // namespace athena
55 56
56 #endif // ATHENA_COMMON_ATHENA_FRAME_VIEW_H_ 57 #endif // ATHENA_COMMON_ATHENA_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « athena/activity/activity_frame_view.cc ('k') | chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698