diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 04:50:42 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 04:50:42 +0000 |
commit | 769253374df79583d119ae9c68387b58f728e31c (patch) | |
tree | 57b12a92a5f74a5d10ae83ba852778de6ea004b7 /ui/views/bubble | |
parent | 64fa12dadacb094942b3448c9943c6a08ac16ff8 (diff) | |
download | chromium_src-769253374df79583d119ae9c68387b58f728e31c.zip chromium_src-769253374df79583d119ae9c68387b58f728e31c.tar.gz chromium_src-769253374df79583d119ae9c68387b58f728e31c.tar.bz2 |
views: Improve the doc comment for BubbleFrameView.
R=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10801004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147395 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/bubble')
-rw-r--r-- | ui/views/bubble/bubble_border.h | 15 | ||||
-rw-r--r-- | ui/views/bubble/bubble_frame_view.h | 9 |
2 files changed, 12 insertions, 12 deletions
diff --git a/ui/views/bubble/bubble_border.h b/ui/views/bubble/bubble_border.h index 0b733dc..cc15f2be 100644 --- a/ui/views/bubble/bubble_border.h +++ b/ui/views/bubble/bubble_border.h @@ -5,6 +5,7 @@ #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ +#include "base/basictypes.h" #include "base/compiler_specific.h" #include "ui/views/background.h" #include "ui/views/border.h" @@ -17,7 +18,7 @@ namespace views { // Renders a border, with optional arrow, and a custom dropshadow. // This can be used to produce floating "bubble" objects with rounded corners. -class VIEWS_EXPORT BubbleBorder : public views::Border { +class VIEWS_EXPORT BubbleBorder : public Border { public: // Possible locations for the (optional) arrow. // 0 bit specifies left or right. @@ -113,7 +114,7 @@ class VIEWS_EXPORT BubbleBorder : public views::Border { // overflow it differ from desired. int SetArrowOffset(int offset, const gfx::Size& contents_size); - // Overridden from views::Border: + // Overridden from Border: virtual void GetInsets(gfx::Insets* insets) const OVERRIDE; // How many pixels the bubble border is from the edge of the images. @@ -128,8 +129,8 @@ class VIEWS_EXPORT BubbleBorder : public views::Border { // Loads images if necessary. static BorderImages* GetBorderImages(Shadow shadow); - // Overridden from views::Border: - virtual void Paint(const views::View& view, + // Overridden from Border: + virtual void Paint(const View& view, gfx::Canvas* canvas) const OVERRIDE; void DrawEdgeWithArrow(gfx::Canvas* canvas, @@ -170,12 +171,12 @@ class VIEWS_EXPORT BubbleBorder : public views::Border { // A Background that clips itself to the specified BubbleBorder and uses // the background color of the BubbleBorder. -class VIEWS_EXPORT BubbleBackground : public views::Background { +class VIEWS_EXPORT BubbleBackground : public Background { public: explicit BubbleBackground(BubbleBorder* border) : border_(border) {} - // Background overrides. - virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE; + // Overridden from Background: + virtual void Paint(gfx::Canvas* canvas, View* view) const OVERRIDE; private: BubbleBorder* border_; diff --git a/ui/views/bubble/bubble_frame_view.h b/ui/views/bubble/bubble_frame_view.h index baee2fd..2db063e 100644 --- a/ui/views/bubble/bubble_frame_view.h +++ b/ui/views/bubble/bubble_frame_view.h @@ -5,18 +5,17 @@ #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ +#include "base/basictypes.h" +#include "base/compiler_specific.h" #include "base/gtest_prod_util.h" #include "third_party/skia/include/core/SkColor.h" +#include "ui/gfx/insets.h" #include "ui/views/bubble/bubble_border.h" #include "ui/views/window/non_client_view.h" namespace views { -class BorderContentsView; - -// BubbleFrameView to render BubbleBorder. -// -//////////////////////////////////////////////////////////////////////////////// +// This is a NonClientFrameView used to render the BubbleBorder. class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView { public: BubbleFrameView(BubbleBorder::ArrowLocation arrow_location, |