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

Side by Side Diff: ui/views/window/native_frame_view.h

Issue 10993087: Handle titlebar text updates properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Odd - build machine failed to update patch (which I updated successfully) Re-uploading Created 8 years, 2 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
« no previous file with comments | « ui/views/window/custom_frame_view.cc ('k') | ui/views/window/native_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_NATIVE_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 {
11 11
12 class Widget; 12 class Widget;
13 13
14 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView { 14 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView {
15 public: 15 public:
16 explicit NativeFrameView(Widget* frame); 16 explicit NativeFrameView(Widget* frame);
17 virtual ~NativeFrameView(); 17 virtual ~NativeFrameView();
18 18
19 // NonClientFrameView overrides: 19 // NonClientFrameView overrides:
20 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 20 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
21 virtual gfx::Rect GetWindowBoundsForClientBounds( 21 virtual gfx::Rect GetWindowBoundsForClientBounds(
22 const gfx::Rect& client_bounds) const OVERRIDE; 22 const gfx::Rect& client_bounds) const OVERRIDE;
23 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 23 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
24 virtual void GetWindowMask(const gfx::Size& size, 24 virtual void GetWindowMask(const gfx::Size& size,
25 gfx::Path* window_mask) OVERRIDE; 25 gfx::Path* window_mask) OVERRIDE;
26 virtual void ResetWindowControls() OVERRIDE; 26 virtual void ResetWindowControls() OVERRIDE;
27 virtual void UpdateWindowIcon() OVERRIDE; 27 virtual void UpdateWindowIcon() OVERRIDE;
28 virtual void UpdateWindowTitle() OVERRIDE;
28 29
29 // View overrides: 30 // View overrides:
30 31
31 // Returns the client size. On Windows, this is the expected behavior for 32 // Returns the client size. On Windows, this is the expected behavior for
32 // native frames (see |NativeWidgetWin::WidgetSizeIsClientSize()|), while 33 // native frames (see |NativeWidgetWin::WidgetSizeIsClientSize()|), while
33 // other platforms currently always return client bounds from 34 // other platforms currently always return client bounds from
34 // |GetWindowBoundsForClientBounds()|. 35 // |GetWindowBoundsForClientBounds()|.
35 virtual gfx::Size GetPreferredSize() OVERRIDE; 36 virtual gfx::Size GetPreferredSize() OVERRIDE;
36 37
37 private: 38 private:
38 // Our containing frame. 39 // Our containing frame.
39 Widget* frame_; 40 Widget* frame_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(NativeFrameView); 42 DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
42 }; 43 };
43 44
44 } // namespace views 45 } // namespace views
45 46
46 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_ 47 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/window/custom_frame_view.cc ('k') | ui/views/window/native_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698