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

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

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <string> 10 #include <string>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "chrome/common/pref_names.h" 78 #include "chrome/common/pref_names.h"
79 #include "content/browser/renderer_host/render_widget_host_view.h" 79 #include "content/browser/renderer_host/render_widget_host_view.h"
80 #include "content/browser/tab_contents/tab_contents.h" 80 #include "content/browser/tab_contents/tab_contents.h"
81 #include "content/browser/tab_contents/tab_contents_view.h" 81 #include "content/browser/tab_contents/tab_contents_view.h"
82 #include "content/common/native_web_keyboard_event.h" 82 #include "content/common/native_web_keyboard_event.h"
83 #include "content/common/notification_service.h" 83 #include "content/common/notification_service.h"
84 #include "grit/app_resources.h" 84 #include "grit/app_resources.h"
85 #include "grit/chromium_strings.h" 85 #include "grit/chromium_strings.h"
86 #include "grit/generated_resources.h" 86 #include "grit/generated_resources.h"
87 #include "grit/theme_resources.h" 87 #include "grit/theme_resources.h"
88 #include "grit/theme_resources_standard.h"
88 #include "ui/base/keycodes/keyboard_codes.h" 89 #include "ui/base/keycodes/keyboard_codes.h"
89 #include "ui/base/l10n/l10n_util.h" 90 #include "ui/base/l10n/l10n_util.h"
90 #include "ui/gfx/gtk_util.h" 91 #include "ui/gfx/gtk_util.h"
91 #include "ui/gfx/rect.h" 92 #include "ui/gfx/rect.h"
92 #include "ui/gfx/skia_utils_gtk.h" 93 #include "ui/gfx/skia_utils_gtk.h"
93 94
94 namespace { 95 namespace {
95 96
96 // The number of milliseconds between loading animation frames. 97 // The number of milliseconds between loading animation frames.
97 const int kLoadingAnimationFrameTimeMs = 30; 98 const int kLoadingAnimationFrameTimeMs = 30;
(...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 // special-case the ones where the custom frame should be used. These names 2329 // special-case the ones where the custom frame should be used. These names
2329 // are taken from the WMs' source code. 2330 // are taken from the WMs' source code.
2330 return (wm_name == "Blackbox" || 2331 return (wm_name == "Blackbox" ||
2331 wm_name == "compiz" || 2332 wm_name == "compiz" ||
2332 wm_name == "e16" || // Enlightenment DR16 2333 wm_name == "e16" || // Enlightenment DR16
2333 wm_name == "Metacity" || 2334 wm_name == "Metacity" ||
2334 wm_name == "Mutter" || 2335 wm_name == "Mutter" ||
2335 wm_name == "Openbox" || 2336 wm_name == "Openbox" ||
2336 wm_name == "Xfwm4"); 2337 wm_name == "Xfwm4");
2337 } 2338 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698