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

Side by Side Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 1921353002: Moves handful of files to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shell_ids
Patch Set: merge to trunk 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 (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 #include "chrome/browser/ui/views/status_bubble_views.h" 5 #include "chrome/browser/ui/views/status_bubble_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 20 matching lines...) Expand all
31 #include "ui/gfx/skia_util.h" 31 #include "ui/gfx/skia_util.h"
32 #include "ui/gfx/text_elider.h" 32 #include "ui/gfx/text_elider.h"
33 #include "ui/gfx/text_utils.h" 33 #include "ui/gfx/text_utils.h"
34 #include "ui/native_theme/native_theme.h" 34 #include "ui/native_theme/native_theme.h"
35 #include "ui/views/controls/scrollbar/native_scroll_bar.h" 35 #include "ui/views/controls/scrollbar/native_scroll_bar.h"
36 #include "ui/views/widget/root_view.h" 36 #include "ui/views/widget/root_view.h"
37 #include "ui/views/widget/widget.h" 37 #include "ui/views/widget/widget.h"
38 #include "url/gurl.h" 38 #include "url/gurl.h"
39 39
40 #if defined(USE_ASH) 40 #if defined(USE_ASH)
41 #include "ash/wm/window_state.h" 41 #include "ash/wm/common/window_state.h"
42 #include "ash/wm/window_state_aura.h" 42 #include "ash/wm/window_state_aura.h"
43 #endif 43 #endif
44 44
45 // The alpha and color of the bubble's shadow. 45 // The alpha and color of the bubble's shadow.
46 static const SkColor kShadowColor = SkColorSetARGB(30, 0, 0, 0); 46 static const SkColor kShadowColor = SkColorSetARGB(30, 0, 0, 0);
47 47
48 // The roundedness of the edges of our bubble. 48 // The roundedness of the edges of our bubble.
49 static const int kBubbleCornerRadius = 4; 49 static const int kBubbleCornerRadius = 4;
50 50
51 // How close the mouse can get to the infobubble before it starts sliding 51 // How close the mouse can get to the infobubble before it starts sliding
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 void StatusBubbleViews::SetBubbleWidth(int width) { 888 void StatusBubbleViews::SetBubbleWidth(int width) {
889 size_.set_width(width); 889 size_.set_width(width);
890 SetBounds(original_position_.x(), original_position_.y(), 890 SetBounds(original_position_.x(), original_position_.y(),
891 size_.width(), size_.height()); 891 size_.width(), size_.height());
892 } 892 }
893 893
894 void StatusBubbleViews::CancelExpandTimer() { 894 void StatusBubbleViews::CancelExpandTimer() {
895 if (expand_timer_factory_.HasWeakPtrs()) 895 if (expand_timer_factory_.HasWeakPtrs())
896 expand_timer_factory_.InvalidateWeakPtrs(); 896 expand_timer_factory_.InvalidateWeakPtrs();
897 } 897 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698