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

Side by Side Diff: views/window/custom_frame_view.h

Issue 577018: Support app menu and double-click close on upper left corner of window, part ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 5 #ifndef VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "views/controls/button/image_button.h" 8 #include "views/controls/button/image_button.h"
9 #include "views/window/non_client_view.h" 9 #include "views/window/non_client_view.h"
10 #include "views/window/window.h" 10 #include "views/window/window.h"
11 #include "views/window/window_resources.h" 11 #include "views/window/window_resources.h"
(...skipping 19 matching lines...) Expand all
31 class CustomFrameView : public NonClientFrameView, 31 class CustomFrameView : public NonClientFrameView,
32 public ButtonListener { 32 public ButtonListener {
33 public: 33 public:
34 explicit CustomFrameView(Window* frame); 34 explicit CustomFrameView(Window* frame);
35 virtual ~CustomFrameView(); 35 virtual ~CustomFrameView();
36 36
37 // Overridden from views::NonClientFrameView: 37 // Overridden from views::NonClientFrameView:
38 virtual gfx::Rect GetBoundsForClientView() const; 38 virtual gfx::Rect GetBoundsForClientView() const;
39 virtual gfx::Rect GetWindowBoundsForClientBounds( 39 virtual gfx::Rect GetWindowBoundsForClientBounds(
40 const gfx::Rect& client_bounds) const; 40 const gfx::Rect& client_bounds) const;
41 virtual gfx::Point GetSystemMenuPoint() const;
42 virtual int NonClientHitTest(const gfx::Point& point); 41 virtual int NonClientHitTest(const gfx::Point& point);
43 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); 42 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask);
44 virtual void EnableClose(bool enable); 43 virtual void EnableClose(bool enable);
45 virtual void ResetWindowControls(); 44 virtual void ResetWindowControls();
46 45
47 // View overrides: 46 // View overrides:
48 virtual void Paint(gfx::Canvas* canvas); 47 virtual void Paint(gfx::Canvas* canvas);
49 virtual void Layout(); 48 virtual void Layout();
50 virtual gfx::Size GetPreferredSize(); 49 virtual gfx::Size GetPreferredSize();
51 50
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Initialize various static resources. 104 // Initialize various static resources.
106 static void InitClass(); 105 static void InitClass();
107 static gfx::Font* title_font_; 106 static gfx::Font* title_font_;
108 107
109 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 108 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
110 }; 109 };
111 110
112 } // namespace views 111 } // namespace views
113 112
114 #endif // VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 113 #endif // VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698