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

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

Issue 24011: chrome_resources take 2 (Closed)
Patch Set: rebase Created 11 years, 10 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
« no previous file with comments | « chrome/browser/views/star_toggle.cc ('k') | chrome/browser/views/tab_icon_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/status_bubble_views.h" 5 #include "chrome/browser/views/status_bubble_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "chrome/app/theme/theme_resources.h" 11 #include "grit/theme_resources.h"
12 #include "chrome/common/animation.h" 12 #include "chrome/common/animation.h"
13 #include "chrome/common/gfx/chrome_canvas.h" 13 #include "chrome/common/gfx/chrome_canvas.h"
14 #include "chrome/common/gfx/text_elider.h" 14 #include "chrome/common/gfx/text_elider.h"
15 #include "chrome/common/l10n_util.h" 15 #include "chrome/common/l10n_util.h"
16 #include "chrome/common/resource_bundle.h" 16 #include "chrome/common/resource_bundle.h"
17 #include "chrome/views/label.h" 17 #include "chrome/views/label.h"
18 #include "chrome/views/root_view.h" 18 #include "chrome/views/root_view.h"
19 #include "chrome/views/widget_win.h" 19 #include "chrome/views/widget_win.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 frame_->GetBounds(&frame_bounds, false); 627 frame_->GetBounds(&frame_bounds, false);
628 int mirrored_x = frame_bounds.width() - x - w; 628 int mirrored_x = frame_bounds.width() - x - w;
629 position_.SetPoint(mirrored_x, y); 629 position_.SetPoint(mirrored_x, y);
630 } else { 630 } else {
631 position_.SetPoint(x, y); 631 position_.SetPoint(x, y);
632 } 632 }
633 633
634 size_.SetSize(w, h); 634 size_.SetSize(w, h);
635 Reposition(); 635 Reposition();
636 } 636 }
OLDNEW
« no previous file with comments | « chrome/browser/views/star_toggle.cc ('k') | chrome/browser/views/tab_icon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698