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

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

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/views/dropdown_bar_view.h" 5 #include "chrome/browser/ui/views/dropdown_bar_view.h"
6 6
7 #include "chrome/browser/themes/theme_service.h" 7 #include "chrome/browser/themes/theme_service.h"
8 #include "chrome/browser/ui/view_ids.h" 8 #include "chrome/browser/ui/view_ids.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 #include "grit/theme_resources_standard.h" 11 #include "grit/theme_resources_standard.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/views/background.h"
14 #include "ui/views/widget/widget.h" 15 #include "ui/views/widget/widget.h"
15 #include "views/background.h"
16 16
17 namespace { 17 namespace {
18 18
19 // When we are animating, we draw only the top part of the left and right 19 // When we are animating, we draw only the top part of the left and right
20 // edges to give the illusion that the find dialog is attached to the 20 // edges to give the illusion that the find dialog is attached to the
21 // window during this animation; this is the height of the items we draw. 21 // window during this animation; this is the height of the items we draw.
22 const int kAnimatingEdgeHeight = 5; 22 const int kAnimatingEdgeHeight = 5;
23 23
24 } // namespace 24 } // namespace
25 25
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (animation_offset() > 0) { 98 if (animation_offset() > 0) {
99 // While animating we draw the curved edges at the point where the 99 // While animating we draw the curved edges at the point where the
100 // controller told us the top of the window is: |animation_offset()|. 100 // controller told us the top of the window is: |animation_offset()|.
101 canvas->TileImageInt(*dialog_left_, bounds.x(), animation_offset(), 101 canvas->TileImageInt(*dialog_left_, bounds.x(), animation_offset(),
102 dialog_left_->width(), kAnimatingEdgeHeight); 102 dialog_left_->width(), kAnimatingEdgeHeight);
103 canvas->TileImageInt(*dialog_right_, 103 canvas->TileImageInt(*dialog_right_,
104 bounds.width() - dialog_right_->width(), animation_offset(), 104 bounds.width() - dialog_right_->width(), animation_offset(),
105 dialog_right_->width(), kAnimatingEdgeHeight); 105 dialog_right_->width(), kAnimatingEdgeHeight);
106 } 106 }
107 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_view.h ('k') | chrome/browser/ui/views/extensions/extension_install_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698