/external/chromium_org/ui/views/bubble/ |
D | bubble_border_unittest.cc | 15 EXPECT_EQ(BubbleBorder::TOP_RIGHT, in TEST_F() 16 BubbleBorder::horizontal_mirror(BubbleBorder::TOP_LEFT)); in TEST_F() 17 EXPECT_EQ(BubbleBorder::TOP_LEFT, in TEST_F() 18 BubbleBorder::horizontal_mirror(BubbleBorder::TOP_RIGHT)); in TEST_F() 20 EXPECT_EQ(BubbleBorder::BOTTOM_RIGHT, in TEST_F() 21 BubbleBorder::horizontal_mirror(BubbleBorder::BOTTOM_LEFT)); in TEST_F() 22 EXPECT_EQ(BubbleBorder::BOTTOM_LEFT, in TEST_F() 23 BubbleBorder::horizontal_mirror(BubbleBorder::BOTTOM_RIGHT)); in TEST_F() 25 EXPECT_EQ(BubbleBorder::RIGHT_TOP, in TEST_F() 26 BubbleBorder::horizontal_mirror(BubbleBorder::LEFT_TOP)); in TEST_F() [all …]
|
D | bubble_frame_view_unittest.cc | 17 const BubbleBorder::Arrow kArrow = BubbleBorder::TOP_LEFT; 26 SetBubbleBorder(new BubbleBorder(kArrow, BubbleBorder::NO_SHADOW, kColor)); in TestBubbleFrameView() 64 frame.bubble_border()->set_arrow(BubbleBorder::TOP_LEFT); in TEST_F() 69 EXPECT_EQ(BubbleBorder::TOP_LEFT, frame.bubble_border()->arrow()); in TEST_F() 75 frame.bubble_border()->set_arrow(BubbleBorder::TOP_RIGHT); in TEST_F() 80 EXPECT_EQ(BubbleBorder::TOP_LEFT, frame.bubble_border()->arrow()); in TEST_F() 86 frame.bubble_border()->set_arrow(BubbleBorder::BOTTOM_RIGHT); in TEST_F() 91 EXPECT_EQ(BubbleBorder::TOP_LEFT, frame.bubble_border()->arrow()); in TEST_F() 97 frame.bubble_border()->set_arrow(BubbleBorder::BOTTOM_LEFT); in TEST_F() 102 EXPECT_EQ(BubbleBorder::TOP_LEFT, frame.bubble_border()->arrow()); in TEST_F() [all …]
|
D | bubble_border.cc | 123 BorderImages* GetBorderImages(BubbleBorder::Shadow shadow) { in GetBorderImages() 125 static BorderImages* kBorderImages[BubbleBorder::SHADOW_COUNT] = { NULL }; in GetBorderImages() 127 CHECK_LT(shadow, BubbleBorder::SHADOW_COUNT); in GetBorderImages() 133 case BubbleBorder::NO_SHADOW: in GetBorderImages() 134 case BubbleBorder::NO_SHADOW_OPAQUE_BORDER: in GetBorderImages() 137 case BubbleBorder::BIG_SHADOW: in GetBorderImages() 140 case BubbleBorder::SMALL_SHADOW: in GetBorderImages() 143 case BubbleBorder::SHADOW_COUNT: in GetBorderImages() 153 BubbleBorder::BubbleBorder(Arrow arrow, Shadow shadow, SkColor color) in BubbleBorder() function in views::BubbleBorder 164 BubbleBorder::~BubbleBorder() {} in ~BubbleBorder() [all …]
|
D | tray_bubble_view.cc | 77 class TrayBubbleBorder : public BubbleBorder { 82 : BubbleBorder(params.arrow, params.shadow, params.arrow_color), in TrayBubbleBorder() 100 BubbleBorder::GetBounds(position_relative_to, contents_size); in GetBounds() 102 if (arrow() == BubbleBorder::BOTTOM_RIGHT || in GetBounds() 103 arrow() == BubbleBorder::BOTTOM_LEFT) { in GetBounds() 108 } else if (arrow() == BubbleBorder::LEFT_BOTTOM) { in GetBounds() 110 } else if (arrow() == BubbleBorder::RIGHT_BOTTOM) { in GetBounds() 130 if (arrow() == BubbleBorder::BOTTOM_RIGHT || in UpdateArrowOffset() 131 arrow() == BubbleBorder::BOTTOM_LEFT) { in UpdateArrowOffset() 142 if (arrow() == BubbleBorder::BOTTOM_RIGHT) in UpdateArrowOffset() [all …]
|
D | bubble_delegate.h | 31 BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow); 67 BubbleBorder::Arrow arrow() const { return arrow_; } in arrow() 68 void set_arrow(BubbleBorder::Arrow arrow) { arrow_ = arrow; } in set_arrow() 70 BubbleBorder::Shadow shadow() const { return shadow_; } in shadow() 71 void set_shadow(BubbleBorder::Shadow shadow) { shadow_ = shadow; } in set_shadow() 119 void SetAlignment(BubbleBorder::BubbleAlignment alignment); 122 void SetArrowPaintType(BubbleBorder::ArrowPaintType paint_type); 191 BubbleBorder::Arrow arrow_; 194 BubbleBorder::Shadow shadow_;
|
D | bubble_frame_view.cc | 124 if ((bubble_border_->arrow() != BubbleBorder::NONE && in GetWindowMask() 125 bubble_border_->arrow() != BubbleBorder::FLOAT) || in GetWindowMask() 126 (bubble_border_->shadow() != BubbleBorder::SMALL_SHADOW && in GetWindowMask() 127 bubble_border_->shadow() != BubbleBorder::NO_SHADOW_OPAQUE_BORDER)) in GetWindowMask() 140 if (bubble_border_->shadow() == BubbleBorder::NO_SHADOW_OPAQUE_BORDER) { in GetWindowMask() 228 void BubbleFrameView::SetBubbleBorder(BubbleBorder* border) { in SetBubbleBorder() 249 const BubbleBorder::Arrow arrow = bubble_border_->arrow(); in GetUpdatedWindowBounds() 250 if (adjust_if_offscreen && BubbleBorder::has_arrow(arrow)) { in GetUpdatedWindowBounds() 258 MirrorArrowIfOffScreen(BubbleBorder::is_arrow_on_horizontal(arrow), in GetUpdatedWindowBounds() 284 BubbleBorder::Arrow arrow = bubble_border()->arrow(); in MirrorArrowIfOffScreen() [all …]
|
D | bubble_delegate.cc | 56 arrow_(BubbleBorder::TOP_LEFT), in BubbleDelegateView() 57 shadow_(BubbleBorder::SMALL_SHADOW), in BubbleDelegateView() 72 BubbleBorder::Arrow arrow) in BubbleDelegateView() 79 shadow_(BubbleBorder::SMALL_SHADOW), in BubbleDelegateView() 136 BubbleBorder::Arrow adjusted_arrow = arrow(); in CreateNonClientFrameView() 138 adjusted_arrow = BubbleBorder::horizontal_mirror(adjusted_arrow); in CreateNonClientFrameView() 139 frame->SetBubbleBorder(new BubbleBorder(adjusted_arrow, shadow(), color())); in CreateNonClientFrameView() 232 void BubbleDelegateView::SetAlignment(BubbleBorder::BubbleAlignment alignment) { in SetAlignment() 238 BubbleBorder::ArrowPaintType paint_type) { in SetArrowPaintType()
|
D | bubble_border.h | 26 class VIEWS_EXPORT BubbleBorder : public Border { 83 BubbleBorder(Arrow arrow, Shadow shadow, SkColor color); 84 virtual ~BubbleBorder(); 182 DISALLOW_COPY_AND_ASSIGN(BubbleBorder); 189 explicit BubbleBackground(BubbleBorder* border) : border_(border) {} in BubbleBackground() 195 BubbleBorder* border_;
|
D | tray_bubble_view.h | 106 views::BubbleBorder::Arrow arrow; 108 views::BubbleBorder::ArrowPaintType arrow_paint_type; 109 views::BubbleBorder::Shadow shadow; 110 views::BubbleBorder::BubbleAlignment arrow_alignment; 135 void SetArrowPaintType(views::BubbleBorder::ArrowPaintType arrow_paint_type);
|
D | bubble_frame_view.h | 19 class BubbleBorder; variable 59 BubbleBorder* bubble_border() const { return bubble_border_; } in bubble_border() 60 void SetBubbleBorder(BubbleBorder* border); 95 BubbleBorder* bubble_border_;
|
D | bubble_delegate_unittest.cc | 25 : BubbleDelegateView(anchor_view, BubbleBorder::TOP_LEFT), in TestBubbleDelegateView() 74 anchor_widget->GetContentsView(), BubbleBorder::NONE); in TEST_F() 82 BubbleBorder* border = bubble_delegate->GetBubbleFrameView()->bubble_border(); in TEST_F() 94 anchor_widget->GetContentsView(), BubbleBorder::NONE); in TEST_F() 174 anchor_widget->GetContentsView(), BubbleBorder::NONE); in TEST_F() 216 anchor_widget->GetContentsView(), BubbleBorder::NONE); in TEST_F() 250 anchor_widget->GetContentsView(), BubbleBorder::NONE); in TEST_F()
|
/external/chromium_org/ui/views/examples/ |
D | bubble_example.cc | 21 BubbleBorder::Arrow arrows[] = { 22 BubbleBorder::TOP_LEFT, BubbleBorder::TOP_CENTER, 23 BubbleBorder::TOP_RIGHT, BubbleBorder::RIGHT_TOP, 24 BubbleBorder::RIGHT_CENTER, BubbleBorder::RIGHT_BOTTOM, 25 BubbleBorder::BOTTOM_RIGHT, BubbleBorder::BOTTOM_CENTER, 26 BubbleBorder::BOTTOM_LEFT, BubbleBorder::LEFT_BOTTOM, 27 BubbleBorder::LEFT_CENTER, BubbleBorder::LEFT_TOP }; 29 string16 GetArrowName(BubbleBorder::Arrow arrow) { in GetArrowName() 31 case BubbleBorder::TOP_LEFT: return ASCIIToUTF16("TOP_LEFT"); in GetArrowName() 32 case BubbleBorder::TOP_RIGHT: return ASCIIToUTF16("TOP_RIGHT"); in GetArrowName() [all …]
|
/external/chromium/chrome/browser/ui/views/bubble/ |
D | border_contents_unittest.cc | 18 BubbleBorder* bubble_border() const { return bubble_border_; } in bubble_border() 43 BubbleBorder::TOP_LEFT, in TEST_F() 48 BubbleBorder::ArrowLocation arrow_location = in TEST_F() 50 EXPECT_TRUE(BubbleBorder::has_arrow(arrow_location)); in TEST_F() 51 EXPECT_TRUE(BubbleBorder::is_arrow_on_top(arrow_location)); in TEST_F() 52 EXPECT_TRUE(BubbleBorder::is_arrow_on_left(arrow_location)); in TEST_F() 60 BubbleBorder::TOP_RIGHT, in TEST_F() 66 EXPECT_TRUE(BubbleBorder::has_arrow(arrow_location)); in TEST_F() 67 EXPECT_TRUE(BubbleBorder::is_arrow_on_top(arrow_location)); in TEST_F() 68 EXPECT_TRUE(BubbleBorder::is_arrow_on_left(arrow_location)); in TEST_F() [all …]
|
D | border_contents.cc | 15 BubbleBorder::ArrowLocation arrow_location = BubbleBorder::TOP_LEFT; in Init() 17 arrow_location = BubbleBorder::horizontal_mirror(arrow_location); in Init() 20 bubble_border_ = new BubbleBorder(arrow_location); in Init() 31 BubbleBorder::ArrowLocation arrow_location, in SizeAndGetBounds() 37 arrow_location = BubbleBorder::horizontal_mirror(arrow_location); in SizeAndGetBounds() 86 BubbleBorder::ArrowLocation* arrow_location, in MirrorArrowIfOffScreen() 94 BubbleBorder::ArrowLocation original_arrow_location = *arrow_location; in MirrorArrowIfOffScreen() 96 vertical ? BubbleBorder::vertical_mirror(*arrow_location) : in MirrorArrowIfOffScreen() 97 BubbleBorder::horizontal_mirror(*arrow_location); in MirrorArrowIfOffScreen()
|
D | bubble_border.cc | 15 SkBitmap* BubbleBorder::left_ = NULL; 16 SkBitmap* BubbleBorder::top_left_ = NULL; 17 SkBitmap* BubbleBorder::top_ = NULL; 18 SkBitmap* BubbleBorder::top_right_ = NULL; 19 SkBitmap* BubbleBorder::right_ = NULL; 20 SkBitmap* BubbleBorder::bottom_right_ = NULL; 21 SkBitmap* BubbleBorder::bottom_ = NULL; 22 SkBitmap* BubbleBorder::bottom_left_ = NULL; 23 SkBitmap* BubbleBorder::top_arrow_ = NULL; 24 SkBitmap* BubbleBorder::bottom_arrow_ = NULL; [all …]
|
D | bubble_border.h | 17 class BubbleBorder : public views::Border { 36 explicit BubbleBorder(ArrowLocation arrow_location) in BubbleBorder() function 109 virtual ~BubbleBorder() { } in ~BubbleBorder() 154 DISALLOW_COPY_AND_ASSIGN(BubbleBorder); 161 explicit BubbleBackground(BubbleBorder* border) : border_(border) {} in BubbleBackground() 167 BubbleBorder* border_;
|
D | border_contents.h | 33 BubbleBorder::ArrowLocation arrow_location, 52 BubbleBorder* bubble_border_; 62 BubbleBorder::ArrowLocation* arrow_location,
|
D | bubble.h | 96 BubbleBorder::ArrowLocation arrow_location, 108 BubbleBorder::ArrowLocation arrow_location, 145 BubbleBorder::ArrowLocation arrow_location, 210 BubbleBorder::ArrowLocation arrow_location_;
|
/external/chromium_org/ui/views/controls/menu/ |
D | menu_scroll_view_container.cc | 180 arrow_(BubbleBorder::NONE), in MenuScrollViewContainer() 193 if (arrow_ != BubbleBorder::NONE) in MenuScrollViewContainer() 200 return arrow_ != BubbleBorder::NONE; in HasBubbleBorder() 277 arrow_ = BubbleBorder::NONE; in CreateDefaultBorder() 313 bubble_border_ = new BubbleBorder(arrow_, in CreateBubbleBorder() 314 BubbleBorder::SMALL_SHADOW, in CreateBubbleBorder() 320 BubbleBorder::Arrow 325 return BubbleBorder::RIGHT_CENTER; in BubbleBorderTypeFromAnchor() 327 return BubbleBorder::LEFT_CENTER; in BubbleBorderTypeFromAnchor() 329 return BubbleBorder::BOTTOM_CENTER; in BubbleBorderTypeFromAnchor() [all …]
|
D | menu_scroll_view_container.h | 50 BubbleBorder::Arrow BubbleBorderTypeFromAnchor( 66 BubbleBorder::Arrow arrow_; 69 BubbleBorder* bubble_border_;
|
/external/chromium_org/ash/shelf/ |
D | overflow_bubble_view.cc | 83 views::BubbleBorder::Arrow OverflowBubbleView::GetBubbleArrow() const { in GetBubbleArrow() 87 views::BubbleBorder::BOTTOM_LEFT, in GetBubbleArrow() 88 views::BubbleBorder::LEFT_TOP, in GetBubbleArrow() 89 views::BubbleBorder::RIGHT_TOP, in GetBubbleArrow() 90 views::BubbleBorder::TOP_LEFT) : in GetBubbleArrow() 91 views::BubbleBorder::NONE; in GetBubbleArrow() 184 views::BubbleBorder* border = GetBubbleFrameView()->bubble_border(); in GetBubbleBounds() 188 views::BubbleBorder::is_arrow_on_horizontal(arrow()) ? in GetBubbleBounds() 206 if (views::BubbleBorder::is_arrow_on_horizontal(arrow())) { in GetBubbleBounds()
|
D | shelf_tooltip_manager.cc | 53 views::BubbleBorder::Arrow arrow, 74 views::BubbleBorder::Arrow arrow, in ShelfTooltipBubble() 95 set_shadow(views::BubbleBorder::SMALL_SHADOW); in ShelfTooltipBubble() 350 views::BubbleBorder::Arrow arrow = in CreateBubble() 352 views::BubbleBorder::BOTTOM_CENTER, in CreateBubble() 353 views::BubbleBorder::LEFT_CENTER, in CreateBubble() 354 views::BubbleBorder::RIGHT_CENTER, in CreateBubble() 355 views::BubbleBorder::TOP_CENTER); in CreateBubble()
|
/external/chromium_org/chrome/browser/ui/views/ |
D | avatar_menu_button.cc | 106 views::BubbleBorder::Arrow arrow = button_on_right_ ? in ShowAvatarBubble() 107 views::BubbleBorder::TOP_RIGHT : views::BubbleBorder::TOP_LEFT; in ShowAvatarBubble() 110 this, arrow, views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, bounds, in ShowAvatarBubble() 114 this, arrow, views::BubbleBorder::ALIGN_ARROW_TO_MID_ANCHOR, bounds, in ShowAvatarBubble()
|
/external/chromium_org/ui/views/window/ |
D | dialog_delegate.cc | 168 frame->SetBubbleBorder(new BubbleBorder( in CreateDialogFrameView() 169 BubbleBorder::NONE, in CreateDialogFrameView() 170 BubbleBorder::NO_SHADOW_OPAQUE_BORDER, in CreateDialogFrameView() 173 frame->SetBubbleBorder(new BubbleBorder(BubbleBorder::FLOAT, in CreateDialogFrameView() 174 BubbleBorder::SMALL_SHADOW, in CreateDialogFrameView()
|
/external/chromium_org/ui/app_list/views/ |
D | app_list_view.h | 49 views::BubbleBorder::Arrow arrow, 57 views::BubbleBorder::Arrow arrow, 60 void SetBubbleArrow(views::BubbleBorder::Arrow arrow); 108 views::BubbleBorder::Arrow arrow,
|