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

Side by Side Diff: chrome/browser/ui/views/frame/popup_non_client_frame_view.h

Issue 10993087: Handle titlebar text updates properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
7 7
8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
9 9
10 // BrowserNonClientFrameView implementation for popups. We let the window 10 // BrowserNonClientFrameView implementation for popups. We let the window
11 // manager implementation render the decorations for popups, so this draws 11 // manager implementation render the decorations for popups, so this draws
12 // nothing. 12 // nothing.
13 class PopupNonClientFrameView : public BrowserNonClientFrameView { 13 class PopupNonClientFrameView : public BrowserNonClientFrameView {
14 public: 14 public:
15 explicit PopupNonClientFrameView(BrowserFrame* frame); 15 explicit PopupNonClientFrameView(BrowserFrame* frame);
16 16
17 // NonClientFrameView: 17 // NonClientFrameView:
18 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 18 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
19 virtual gfx::Rect GetWindowBoundsForClientBounds( 19 virtual gfx::Rect GetWindowBoundsForClientBounds(
20 const gfx::Rect& client_bounds) const OVERRIDE; 20 const gfx::Rect& client_bounds) const OVERRIDE;
21 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 21 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
22 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 22 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
23 OVERRIDE; 23 OVERRIDE;
24 virtual void ResetWindowControls() OVERRIDE; 24 virtual void ResetWindowControls() OVERRIDE;
25 virtual void UpdateWindowIcon() OVERRIDE; 25 virtual void UpdateWindowIcon() OVERRIDE;
26 virtual void UpdateWindowTitle() OVERRIDE;
26 27
27 // BrowserNonClientFrameView: 28 // BrowserNonClientFrameView:
28 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 29 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
29 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE; 30 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE;
30 virtual int GetThemeBackgroundXInset() const OVERRIDE; 31 virtual int GetThemeBackgroundXInset() const OVERRIDE;
31 virtual void UpdateThrobber(bool running) OVERRIDE; 32 virtual void UpdateThrobber(bool running) OVERRIDE;
32 33
33 private: 34 private:
34 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); 35 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView);
35 }; 36 };
36 37
37 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ 38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698