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

Side by Side Diff: ui/views/bubble/bubble_frame_view.h

Issue 326963002: [Views] Add a capability to the bubble delegate to be able to show the title in BaseFont. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 6 #define UI_VIEWS_BUBBLE_BUBBLE_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/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 25 matching lines...) Expand all
36 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 36 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
37 virtual gfx::Rect GetWindowBoundsForClientBounds( 37 virtual gfx::Rect GetWindowBoundsForClientBounds(
38 const gfx::Rect& client_bounds) const OVERRIDE; 38 const gfx::Rect& client_bounds) const OVERRIDE;
39 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 39 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
40 virtual void GetWindowMask(const gfx::Size& size, 40 virtual void GetWindowMask(const gfx::Size& size,
41 gfx::Path* window_mask) OVERRIDE; 41 gfx::Path* window_mask) OVERRIDE;
42 virtual void ResetWindowControls() OVERRIDE; 42 virtual void ResetWindowControls() OVERRIDE;
43 virtual void UpdateWindowIcon() OVERRIDE; 43 virtual void UpdateWindowIcon() OVERRIDE;
44 virtual void UpdateWindowTitle() OVERRIDE; 44 virtual void UpdateWindowTitle() OVERRIDE;
45 45
46 // Use BaseFont for the bubble title label.
47 void ShowTitleInBaseFont();
msw 2014/06/10 18:16:05 How about SetTitleFontList?
48
46 // View overrides: 49 // View overrides:
47 virtual gfx::Insets GetInsets() const OVERRIDE; 50 virtual gfx::Insets GetInsets() const OVERRIDE;
48 virtual gfx::Size GetPreferredSize() const OVERRIDE; 51 virtual gfx::Size GetPreferredSize() const OVERRIDE;
49 virtual gfx::Size GetMinimumSize() const OVERRIDE; 52 virtual gfx::Size GetMinimumSize() const OVERRIDE;
50 virtual void Layout() OVERRIDE; 53 virtual void Layout() OVERRIDE;
51 virtual const char* GetClassName() const OVERRIDE; 54 virtual const char* GetClassName() const OVERRIDE;
52 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; 55 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
53 virtual void OnThemeChanged() OVERRIDE; 56 virtual void OnThemeChanged() OVERRIDE;
54 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; 57 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;
55 58
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // When supplied, this view is placed in the titlebar between the title and 108 // When supplied, this view is placed in the titlebar between the title and
106 // (x) close button. 109 // (x) close button.
107 View* titlebar_extra_view_; 110 View* titlebar_extra_view_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 112 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
110 }; 113 };
111 114
112 } // namespace views 115 } // namespace views
113 116
114 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 117 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698