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

Side by Side Diff: chrome/views/custom_frame_window.h

Issue 27286: All views::Window objects must have a NonClientView, regardless of whether or... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 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 | chrome/views/custom_frame_window.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ 5 #ifndef CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__
6 #define CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ 6 #define CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__
7 7
8 #include "chrome/common/gfx/chrome_canvas.h" 8 #include "chrome/common/gfx/chrome_canvas.h"
9 #include "chrome/views/window.h" 9 #include "chrome/views/window.h"
10 #include "chrome/views/window_delegate.h" 10 #include "chrome/views/window_delegate.h"
(...skipping 17 matching lines...) Expand all
28 explicit CustomFrameWindow(WindowDelegate* window_delegate); 28 explicit CustomFrameWindow(WindowDelegate* window_delegate);
29 CustomFrameWindow(WindowDelegate* window_delegate, 29 CustomFrameWindow(WindowDelegate* window_delegate,
30 NonClientView* non_client_view); 30 NonClientView* non_client_view);
31 virtual ~CustomFrameWindow(); 31 virtual ~CustomFrameWindow();
32 32
33 // Returns whether or not the frame is active. 33 // Returns whether or not the frame is active.
34 bool is_active() const { return is_active_; } 34 bool is_active() const { return is_active_; }
35 35
36 // Overridden from Window: 36 // Overridden from Window:
37 virtual void Init(HWND parent, const gfx::Rect& bounds); 37 virtual void Init(HWND parent, const gfx::Rect& bounds);
38 virtual void SetClientView(ClientView* client_view);
39 virtual gfx::Size CalculateWindowSizeForClientSize( 38 virtual gfx::Size CalculateWindowSizeForClientSize(
40 const gfx::Size& client_size) const; 39 const gfx::Size& client_size) const;
41 virtual void UpdateWindowTitle(); 40 virtual void UpdateWindowTitle();
42 virtual void UpdateWindowIcon(); 41 virtual void UpdateWindowIcon();
43 42
44 protected: 43 protected:
45 // Overridden from Window: 44 // Overridden from Window:
46 virtual void SizeWindowToDefault(); 45 virtual void SizeWindowToDefault();
47 virtual void EnableClose(bool enable); 46 virtual void EnableClose(bool enable);
48 virtual void DisableInactiveRendering(bool disable); 47 virtual void DisableInactiveRendering(bool disable);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 96 };
98 static HCURSOR resize_cursors_[6]; 97 static HCURSOR resize_cursors_[6];
99 98
100 DISALLOW_EVIL_CONSTRUCTORS(CustomFrameWindow); 99 DISALLOW_EVIL_CONSTRUCTORS(CustomFrameWindow);
101 }; 100 };
102 101
103 } // namespace views 102 } // namespace views
104 103
105 #endif // CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__ 104 #endif // CHROME_VIEWS_CUSTOM_FRAME_WINDOW_H__
106 105
OLDNEW
« no previous file with comments | « no previous file | chrome/views/custom_frame_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698