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

Side by Side Diff: ui/chromeos/ime/mode_indicator_view.cc

Issue 1922813002: Vanquish views::BubbleDelegate{View,} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix other test, respond to comments Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/chromeos/ime/mode_indicator_view.h" 5 #include "ui/chromeos/ime/mode_indicator_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/display/display.h" 9 #include "ui/display/display.h"
10 #include "ui/display/screen.h" 10 #include "ui/display/screen.h"
11 #include "ui/views/bubble/bubble_delegate.h"
12 #include "ui/views/bubble/bubble_frame_view.h" 11 #include "ui/views/bubble/bubble_frame_view.h"
13 #include "ui/views/controls/label.h" 12 #include "ui/views/controls/label.h"
14 #include "ui/views/layout/fill_layout.h" 13 #include "ui/views/layout/fill_layout.h"
15 #include "ui/wm/core/window_animations.h" 14 #include "ui/wm/core/window_animations.h"
16 15
17 namespace ui { 16 namespace ui {
18 namespace ime { 17 namespace ime {
19 18
20 namespace { 19 namespace {
21 20
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins()); 96 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins());
98 // arrow adjustment in BubbleDialogDelegateView is unnecessary because arrow 97 // arrow adjustment in BubbleDialogDelegateView is unnecessary because arrow
99 // of this bubble is always center. 98 // of this bubble is always center.
100 frame->SetBubbleBorder(std::unique_ptr<views::BubbleBorder>( 99 frame->SetBubbleBorder(std::unique_ptr<views::BubbleBorder>(
101 new views::BubbleBorder(arrow(), shadow(), color()))); 100 new views::BubbleBorder(arrow(), shadow(), color())));
102 return frame; 101 return frame;
103 } 102 }
104 103
105 } // namespace ime 104 } // namespace ime
106 } // namespace ui 105 } // namespace ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/website_settings/permissions_bubble_view.cc ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698