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

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

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/new_back_shortcut_bubble.h" 5 #include "chrome/browser/ui/views/new_back_shortcut_bubble.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "chrome/app/chrome_command_ids.h" 13 #include "chrome/app/chrome_command_ids.h"
14 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h" 14 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h"
15 #include "chrome/browser/ui/views/subtle_notification_view.h" 15 #include "chrome/browser/ui/views/subtle_notification_view.h"
16 #include "chrome/grit/generated_resources.h" 16 #include "chrome/grit/generated_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 #include "ui/gfx/animation/animation.h" 18 #include "ui/gfx/animation/animation.h"
19 #include "ui/gfx/animation/slide_animation.h" 19 #include "ui/gfx/animation/slide_animation.h"
20 #include "ui/gfx/geometry/rect.h" 20 #include "ui/gfx/geometry/rect.h"
21 #include "ui/gfx/geometry/size.h" 21 #include "ui/gfx/geometry/size.h"
22 #include "ui/strings/grit/ui_strings.h"
23 #include "ui/views/border.h" 22 #include "ui/views/border.h"
24 #include "ui/views/view.h" 23 #include "ui/views/view.h"
25 #include "ui/views/widget/widget.h" 24 #include "ui/views/widget/widget.h"
26 25
27 namespace { 26 namespace {
28 27
29 const int kPopupTopPx = 45; 28 const int kPopupTopPx = 45;
30 const int kSlideInDurationMs = 350; 29 const int kSlideInDurationMs = 350;
31 const int kSlideOutDurationMs = 700; 30 const int kSlideOutDurationMs = 700;
32 const int kShowDurationMs = 3800; 31 const int kShowDurationMs = 3800;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 int desired_top = kPopupTopPx - view_->border()->GetInsets().top(); 111 int desired_top = kPopupTopPx - view_->border()->GetInsets().top();
113 int y = widget_bounds.y() + desired_top; 112 int y = widget_bounds.y() + desired_top;
114 return gfx::Rect(gfx::Point(x, y), size); 113 return gfx::Rect(gfx::Point(x, y), size);
115 } 114 }
116 115
117 void NewBackShortcutBubble::OnTimerElapsed() { 116 void NewBackShortcutBubble::OnTimerElapsed() {
118 // Hide the bubble. 117 // Hide the bubble.
119 animation_->SetSlideDuration(kSlideOutDurationMs); 118 animation_->SetSlideDuration(kSlideOutDurationMs);
120 animation_->Hide(); 119 animation_->Hide();
121 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698