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

Side by Side Diff: ash/wm/panel_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 | « ash/wm/frame_painter.cc ('k') | ash/wm/panel_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 ASH_WM_PANEL_FRAME_VIEW_H_ 5 #ifndef ASH_WM_PANEL_FRAME_VIEW_H_
6 #define ASH_WM_PANEL_FRAME_VIEW_H_ 6 #define ASH_WM_PANEL_FRAME_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
(...skipping 17 matching lines...) Expand all
28 private: 28 private:
29 // Overridden from views::NonClientFrameView: 29 // Overridden from views::NonClientFrameView:
30 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 30 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
31 virtual gfx::Rect GetWindowBoundsForClientBounds( 31 virtual gfx::Rect GetWindowBoundsForClientBounds(
32 const gfx::Rect& client_bounds) const OVERRIDE; 32 const gfx::Rect& client_bounds) const OVERRIDE;
33 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 33 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
34 virtual void GetWindowMask(const gfx::Size& size, 34 virtual void GetWindowMask(const gfx::Size& size,
35 gfx::Path* window_mask) OVERRIDE; 35 gfx::Path* window_mask) OVERRIDE;
36 virtual void ResetWindowControls() OVERRIDE; 36 virtual void ResetWindowControls() OVERRIDE;
37 virtual void UpdateWindowIcon() OVERRIDE; 37 virtual void UpdateWindowIcon() OVERRIDE;
38 virtual void UpdateWindowTitle() OVERRIDE;
38 39
39 // Overridden from views::View: 40 // Overridden from views::View:
40 virtual void Layout() OVERRIDE; 41 virtual void Layout() OVERRIDE;
41 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 42 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
42 43
43 // Overridden from views::ButtonListener: 44 // Overridden from views::ButtonListener:
44 virtual void ButtonPressed(views::Button* sender, 45 virtual void ButtonPressed(views::Button* sender,
45 const ui::Event& event) OVERRIDE; 46 const ui::Event& event) OVERRIDE;
46 47
47 // Child View class describing the panel's title bar behavior 48 // Child View class describing the panel's title bar behavior
48 // and buttons, owned by the view hierarchy 49 // and buttons, owned by the view hierarchy
49 scoped_ptr<FramePainter> frame_painter_; 50 scoped_ptr<FramePainter> frame_painter_;
50 views::ImageButton* close_button_; 51 views::ImageButton* close_button_;
51 views::ImageButton* minimize_button_; 52 views::ImageButton* minimize_button_;
52 gfx::Rect client_view_bounds_; 53 gfx::Rect client_view_bounds_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(PanelFrameView); 55 DISALLOW_COPY_AND_ASSIGN(PanelFrameView);
55 }; 56 };
56 57
57 } 58 }
58 59
59 #endif // ASH_WM_PANEL_FRAME_VIEW_H_ 60 #endif // ASH_WM_PANEL_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | ash/wm/panel_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698