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

Side by Side Diff: chrome/browser/ui/gtk/download/download_item_gtk.cc

Issue 23646006: gtk: Split CustomDrag into multiple pieces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 3 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
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_drag.cc ('k') | chrome/chrome_browser_ui.gypi » ('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) 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/download/download_item_gtk.h" 5 #include "chrome/browser/ui/gtk/download/download_item_gtk.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chrome_notification_types.h" 15 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/download/chrome_download_manager_delegate.h" 16 #include "chrome/browser/download/chrome_download_manager_delegate.h"
17 #include "chrome/browser/download/download_item_model.h" 17 #include "chrome/browser/download/download_item_model.h"
18 #include "chrome/browser/themes/theme_properties.h" 18 #include "chrome/browser/themes/theme_properties.h"
19 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
20 #include "chrome/browser/ui/gtk/custom_drag.h" 20 #include "chrome/browser/ui/gtk/download/download_item_drag.h"
21 #include "chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.h" 21 #include "chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.h"
22 #include "chrome/browser/ui/gtk/download/download_shelf_gtk.h" 22 #include "chrome/browser/ui/gtk/download/download_shelf_gtk.h"
23 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 23 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
24 #include "chrome/browser/ui/gtk/gtk_util.h" 24 #include "chrome/browser/ui/gtk/gtk_util.h"
25 #include "chrome/browser/ui/gtk/nine_box.h" 25 #include "chrome/browser/ui/gtk/nine_box.h"
26 #include "content/public/browser/download_manager.h" 26 #include "content/public/browser/download_manager.h"
27 #include "content/public/browser/notification_source.h" 27 #include "content/public/browser/notification_source.h"
28 #include "grit/generated_resources.h" 28 #include "grit/generated_resources.h"
29 #include "grit/theme_resources.h" 29 #include "grit/theme_resources.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 30 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 UMA_HISTOGRAM_LONG_TIMES("clickjacking.save_download", 924 UMA_HISTOGRAM_LONG_TIMES("clickjacking.save_download",
925 base::Time::Now() - creation_time_); 925 base::Time::Now() - creation_time_);
926 download()->ValidateDangerousDownload(); 926 download()->ValidateDangerousDownload();
927 } 927 }
928 928
929 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) { 929 void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) {
930 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download", 930 UMA_HISTOGRAM_LONG_TIMES("clickjacking.discard_download",
931 base::Time::Now() - creation_time_); 931 base::Time::Now() - creation_time_);
932 download()->Remove(); 932 download()->Remove();
933 } 933 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_drag.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698