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

Side by Side Diff: ui/views/window/custom_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/widget/widget.cc ('k') | ui/views/window/custom_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Overridden from NonClientFrameView: 40 // Overridden from NonClientFrameView:
41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 41 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
42 virtual gfx::Rect GetWindowBoundsForClientBounds( 42 virtual gfx::Rect GetWindowBoundsForClientBounds(
43 const gfx::Rect& client_bounds) const OVERRIDE; 43 const gfx::Rect& client_bounds) const OVERRIDE;
44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 44 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
45 virtual void GetWindowMask(const gfx::Size& size, 45 virtual void GetWindowMask(const gfx::Size& size,
46 gfx::Path* window_mask) OVERRIDE; 46 gfx::Path* window_mask) OVERRIDE;
47 virtual void ResetWindowControls() OVERRIDE; 47 virtual void ResetWindowControls() OVERRIDE;
48 virtual void UpdateWindowIcon() OVERRIDE; 48 virtual void UpdateWindowIcon() OVERRIDE;
49 virtual void UpdateWindowTitle() OVERRIDE;
49 50
50 // Overridden from View: 51 // Overridden from View:
51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
52 virtual void Layout() OVERRIDE; 53 virtual void Layout() OVERRIDE;
53 virtual gfx::Size GetPreferredSize() OVERRIDE; 54 virtual gfx::Size GetPreferredSize() OVERRIDE;
54 55
55 // Overridden from ButtonListener: 56 // Overridden from ButtonListener:
56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; 57 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
57 58
58 private: 59 private:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Background painter for the window frame. 135 // Background painter for the window frame.
135 scoped_ptr<FrameBackground> frame_background_; 136 scoped_ptr<FrameBackground> frame_background_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 138 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
138 }; 139 };
139 140
140 } // namespace views 141 } // namespace views
141 142
142 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 143 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698