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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/gtk/extensions/extension_installed_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // the toolbar to finish animating to know where the item's final position 45 // the toolbar to finish animating to know where the item's final position
46 // will be. 46 // will be.
47 const int kAnimationWaitRetries = 10; 47 const int kAnimationWaitRetries = 10;
48 const int kAnimationWaitMS = 50; 48 const int kAnimationWaitMS = 50;
49 49
50 // Padding between content and edge of bubble. 50 // Padding between content and edge of bubble.
51 const int kContentBorder = 7; 51 const int kContentBorder = 7;
52 52
53 } // namespace 53 } // namespace
54 54
55 namespace browser { 55 namespace chrome {
56 56
57 void ShowExtensionInstalledBubble( 57 void ShowExtensionInstalledBubble(const Extension* extension,
58 const Extension* extension, 58 Browser* browser,
59 Browser* browser, 59 const SkBitmap& icon) {
60 const SkBitmap& icon) {
61 ExtensionInstalledBubbleGtk::Show(extension, browser, icon); 60 ExtensionInstalledBubbleGtk::Show(extension, browser, icon);
62 } 61 }
63 62
64 } // namespace browser 63 } // namespace chrome
65 64
66 void ExtensionInstalledBubbleGtk::Show(const Extension* extension, 65 void ExtensionInstalledBubbleGtk::Show(const Extension* extension,
67 Browser* browser, 66 Browser* browser,
68 const SkBitmap& icon) { 67 const SkBitmap& icon) {
69 new ExtensionInstalledBubbleGtk(extension, browser, icon); 68 new ExtensionInstalledBubbleGtk(extension, browser, icon);
70 } 69 }
71 70
72 ExtensionInstalledBubbleGtk::ExtensionInstalledBubbleGtk( 71 ExtensionInstalledBubbleGtk::ExtensionInstalledBubbleGtk(
73 const Extension* extension, Browser *browser, const SkBitmap& icon) 72 const Extension* extension, Browser *browser, const SkBitmap& icon)
74 : extension_(extension), 73 : extension_(extension),
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 // on all references being cleared before it is destroyed. 355 // on all references being cleared before it is destroyed.
357 MessageLoopForUI::current()->PostTask( 356 MessageLoopForUI::current()->PostTask(
358 FROM_HERE, 357 FROM_HERE,
359 base::Bind(&ExtensionInstalledBubbleGtk::Close, this)); 358 base::Bind(&ExtensionInstalledBubbleGtk::Close, this));
360 } 359 }
361 360
362 void ExtensionInstalledBubbleGtk::Close() { 361 void ExtensionInstalledBubbleGtk::Close() {
363 Release(); // Balanced in ctor. 362 Release(); // Balanced in ctor.
364 bubble_ = NULL; 363 bubble_ = NULL;
365 } 364 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/collected_cookies_gtk.cc ('k') | chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698