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

Side by Side Diff: chrome/browser/ui/gtk/chrome_to_mobile_bubble_gtk.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc 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/chrome_to_mobile_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/chrome_to_mobile_bubble_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/chrome_to_mobile_service_factory.h" 19 #include "chrome/browser/chrome_to_mobile_service_factory.h"
20 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
21 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 21 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
22 #include "chrome/browser/ui/gtk/gtk_util.h" 22 #include "chrome/browser/ui/gtk/gtk_util.h"
23 #include "chrome/common/chrome_notification_types.h" 23 #include "chrome/common/chrome_notification_types.h"
24 #include "content/public/browser/notification_source.h" 24 #include "content/public/browser/notification_source.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "grit/theme_resources_standard.h" 26 #include "grit/theme_resources.h"
27 #include "ui/base/animation/throb_animation.h" 27 #include "ui/base/animation/throb_animation.h"
28 #include "ui/base/gtk/gtk_hig_constants.h" 28 #include "ui/base/gtk/gtk_hig_constants.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/base/text/bytes_formatting.h" 30 #include "ui/base/text/bytes_formatting.h"
31 #include "ui/gfx/image/image.h" 31 #include "ui/gfx/image/image.h"
32 32
33 namespace { 33 namespace {
34 34
35 // The currently open app-modal bubble singleton, or NULL if none is open. 35 // The currently open app-modal bubble singleton, or NULL if none is open.
36 ChromeToMobileBubbleGtk* g_bubble = NULL; 36 ChromeToMobileBubbleGtk* g_bubble = NULL;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 browser_, weak_ptr_factory_.GetWeakPtr()); 307 browser_, weak_ptr_factory_.GetWeakPtr());
308 308
309 // Update the view's contents to show the "Sending..." progress animation. 309 // Update the view's contents to show the "Sending..." progress animation.
310 gtk_widget_set_sensitive(cancel_, FALSE); 310 gtk_widget_set_sensitive(cancel_, FALSE);
311 gtk_widget_set_sensitive(send_, FALSE); 311 gtk_widget_set_sensitive(send_, FALSE);
312 gtk_button_set_alignment(GTK_BUTTON(send_), 0, 0.5); 312 gtk_button_set_alignment(GTK_BUTTON(send_), 0, 0.5);
313 progress_animation_.reset(new ui::ThrobAnimation(this)); 313 progress_animation_.reset(new ui::ThrobAnimation(this));
314 progress_animation_->SetDuration(kProgressThrobDurationMS); 314 progress_animation_->SetDuration(kProgressThrobDurationMS);
315 progress_animation_->StartThrobbing(-1); 315 progress_animation_->StartThrobbing(-1);
316 } 316 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698