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

Side by Side Diff: chrome/browser/chromeos/notifications/notification_panel.cc

Issue 1117009: Move app/gfx/canvas* and app/gfx/font* to gfx/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Draws the view for the balloons. 5 // Draws the view for the balloons.
6 6
7 #include "chrome/browser/chromeos/notifications/notification_panel.h" 7 #include "chrome/browser/chromeos/notifications/notification_panel.h"
8 8
9 #include "app/gfx/canvas.h"
10 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
11 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
12 #include "chrome/browser/chromeos/notifications/balloon_view.h" 11 #include "chrome/browser/chromeos/notifications/balloon_view.h"
12 #include "gfx/canvas.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "views/background.h" 14 #include "views/background.h"
15 #include "views/controls/scroll_view.h" 15 #include "views/controls/scroll_view.h"
16 #include "views/widget/root_view.h" 16 #include "views/widget/root_view.h"
17 #include "views/widget/widget_gtk.h" 17 #include "views/widget/widget_gtk.h"
18 18
19 namespace { 19 namespace {
20 // Minimum and maximum size of balloon content. 20 // Minimum and maximum size of balloon content.
21 const int kBalloonMinWidth = 300; 21 const int kBalloonMinWidth = 300;
22 const int kBalloonMaxWidth = 300; 22 const int kBalloonMaxWidth = 300;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 if (balloon_container_->GetStickyNotificationCount() > 0) { 546 if (balloon_container_->GetStickyNotificationCount() > 0) {
547 state_ = STICKY_AND_NEW; 547 state_ = STICKY_AND_NEW;
548 } else { 548 } else {
549 state_ = MINIMIZED; 549 state_ = MINIMIZED;
550 } 550 }
551 UpdatePanel(false); 551 UpdatePanel(false);
552 } 552 }
553 } 553 }
554 554
555 } // namespace chromeos 555 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_screen.h ('k') | chrome/browser/chromeos/options/language_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698