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

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_view.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/notifications/balloon_view.h" 5 #include "chrome/browser/ui/views/notifications/balloon_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/browser/notification_types.h" 21 #include "content/public/browser/notification_types.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/render_widget_host_view.h" 23 #include "content/public/browser/render_widget_host_view.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
27 #include "grit/theme_resources_standard.h" 27 #include "grit/theme_resources_standard.h"
28 #include "ui/base/animation/slide_animation.h" 28 #include "ui/base/animation/slide_animation.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 #include "ui/gfx/canvas_skia.h" 31 #include "ui/gfx/canvas.h"
32 #include "ui/gfx/insets.h" 32 #include "ui/gfx/insets.h"
33 #include "ui/gfx/native_widget_types.h" 33 #include "ui/gfx/native_widget_types.h"
34 #include "ui/views/bubble/bubble_border.h" 34 #include "ui/views/bubble/bubble_border.h"
35 #include "ui/views/controls/button/button.h" 35 #include "ui/views/controls/button/button.h"
36 #include "ui/views/controls/button/image_button.h" 36 #include "ui/views/controls/button/image_button.h"
37 #include "ui/views/controls/button/text_button.h" 37 #include "ui/views/controls/button/text_button.h"
38 #include "ui/views/controls/menu/menu_item_view.h" 38 #include "ui/views/controls/menu/menu_item_view.h"
39 #include "ui/views/controls/menu/menu_model_adapter.h" 39 #include "ui/views/controls/menu/menu_model_adapter.h"
40 #include "ui/views/controls/menu/menu_runner.h" 40 #include "ui/views/controls/menu/menu_runner.h"
41 #include "ui/views/controls/native/native_view_host.h" 41 #include "ui/views/controls/native/native_view_host.h"
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 return; 532 return;
533 } 533 }
534 534
535 // If the renderer process attached to this balloon is disconnected 535 // If the renderer process attached to this balloon is disconnected
536 // (e.g., because of a crash), we want to close the balloon. 536 // (e.g., because of a crash), we want to close the balloon.
537 notification_registrar_.Remove( 537 notification_registrar_.Remove(
538 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, 538 this, chrome::NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED,
539 content::Source<Balloon>(balloon_)); 539 content::Source<Balloon>(balloon_));
540 Close(false); 540 Close(false);
541 } 541 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698