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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/panels/panel_browser_view.h" 5 #include "chrome/browser/ui/panels/panel_browser_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" 10 #include "chrome/browser/ui/panels/panel_browser_frame_view.h"
11 #include "chrome/browser/ui/panels/panel_manager.h" 11 #include "chrome/browser/ui/panels/panel_manager.h"
12 #include "chrome/browser/ui/views/frame/browser_frame.h" 12 #include "chrome/browser/ui/views/frame/browser_frame.h"
13 #include "chrome/browser/ui/webui/task_manager_dialog.h" 13 #include "chrome/browser/ui/webui/task_manager_dialog.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
17 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
18 #include "ui/base/animation/slide_animation.h" 18 #include "ui/base/animation/slide_animation.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/views/widget/widget.h"
20 #include "views/controls/label.h" 21 #include "views/controls/label.h"
21 #include "views/widget/widget.h"
22 22
23 namespace { 23 namespace {
24 // This value is experimental and subjective. 24 // This value is experimental and subjective.
25 const int kSetBoundsAnimationMs = 180; 25 const int kSetBoundsAnimationMs = 180;
26 26
27 // The threshold to differentiate the short click and long click. 27 // The threshold to differentiate the short click and long click.
28 const base::TimeDelta kShortClickThresholdMs = 28 const base::TimeDelta kShortClickThresholdMs =
29 base::TimeDelta::FromMilliseconds(200); 29 base::TimeDelta::FromMilliseconds(200);
30 30
31 // Delay before click-to-minimize is allowed after the attention has been 31 // Delay before click-to-minimize is allowed after the attention has been
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 } 556 }
557 557
558 bool NativePanelTestingWin::IsWindowSizeKnown() const { 558 bool NativePanelTestingWin::IsWindowSizeKnown() const {
559 return true; 559 return true;
560 } 560 }
561 561
562 bool NativePanelTestingWin::IsAnimatingBounds() const { 562 bool NativePanelTestingWin::IsAnimatingBounds() const {
563 return panel_browser_view_->bounds_animator_.get() && 563 return panel_browser_view_->bounds_animator_.get() &&
564 panel_browser_view_->bounds_animator_->is_animating(); 564 panel_browser_view_->bounds_animator_->is_animating();
565 } 565 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_frame_view.cc ('k') | chrome/browser/ui/touch/status_bubble_touch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698