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

Side by Side Diff: views/bubble/bubble_delegate.h

Issue 8387020: Make GetAnchorPoint non const. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | « no previous file | views/bubble/bubble_delegate.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 VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 5 #ifndef VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
6 #define VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 6 #define VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/base/animation/animation_delegate.h" 9 #include "ui/base/animation/animation_delegate.h"
10 #include "views/bubble/bubble_border.h" 10 #include "views/bubble/bubble_border.h"
(...skipping 28 matching lines...) Expand all
39 // WidgetDelegate overrides: 39 // WidgetDelegate overrides:
40 virtual View* GetInitiallyFocusedView() OVERRIDE; 40 virtual View* GetInitiallyFocusedView() OVERRIDE;
41 virtual View* GetContentsView() OVERRIDE; 41 virtual View* GetContentsView() OVERRIDE;
42 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; 42 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE;
43 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 43 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
44 44
45 bool close_on_esc() const { return close_on_esc_; } 45 bool close_on_esc() const { return close_on_esc_; }
46 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; } 46 void set_close_on_esc(bool close_on_esc) { close_on_esc_ = close_on_esc; }
47 47
48 // Get the arrow's anchor point in screen space. 48 // Get the arrow's anchor point in screen space.
49 virtual gfx::Point GetAnchorPoint() const; 49 virtual gfx::Point GetAnchorPoint();
50 50
51 // Get the arrow's location on the bubble. 51 // Get the arrow's location on the bubble.
52 virtual BubbleBorder::ArrowLocation GetArrowLocation() const; 52 virtual BubbleBorder::ArrowLocation GetArrowLocation() const;
53 53
54 // Get the color used for the background and border. 54 // Get the color used for the background and border.
55 virtual SkColor GetColor() const; 55 virtual SkColor GetColor() const;
56 56
57 // Fade the bubble in or out via Widget transparency. 57 // Fade the bubble in or out via Widget transparency.
58 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion. 58 // Fade in calls Widget::Show; fade out calls Widget::Close upon completion.
59 void StartFade(bool fade_in); 59 void StartFade(bool fade_in);
(...skipping 28 matching lines...) Expand all
88 // The arrow's location on the bubble. 88 // The arrow's location on the bubble.
89 BubbleBorder::ArrowLocation arrow_location_; 89 BubbleBorder::ArrowLocation arrow_location_;
90 90
91 // The background color of the bubble. 91 // The background color of the bubble.
92 SkColor color_; 92 SkColor color_;
93 }; 93 };
94 94
95 } // namespace views 95 } // namespace views
96 96
97 #endif // VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ 97 #endif // VIEWS_BUBBLE_BUBBLE_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698