OLD | NEW |
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/gtk_util.h" | 5 #include "chrome/browser/ui/gtk/gtk_util.h" |
6 | 6 |
7 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
| 8 #include <gdk/gdkx.h> |
| 9 #include <gtk/gtk.h> |
8 | 10 |
9 #include <cstdarg> | 11 #include <cstdarg> |
10 | |
11 #include <map> | 12 #include <map> |
12 | 13 |
13 #include "base/environment.h" | 14 #include "base/environment.h" |
14 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
15 #include "base/linux_util.h" | 16 #include "base/linux_util.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
17 #include "base/nix/xdg_util.h" | 18 #include "base/nix/xdg_util.h" |
18 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
19 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
20 #include "chrome/browser/autocomplete/autocomplete.h" | 21 #include "chrome/browser/autocomplete/autocomplete.h" |
(...skipping 24 matching lines...) Expand all Loading... |
45 #include "ui/gfx/gtk_util.h" | 46 #include "ui/gfx/gtk_util.h" |
46 #include "ui/gfx/image/image.h" | 47 #include "ui/gfx/image/image.h" |
47 | 48 |
48 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
49 #include "chrome/browser/chromeos/frame/browser_view.h" | 50 #include "chrome/browser/chromeos/frame/browser_view.h" |
50 #include "chrome/browser/chromeos/native_dialog_window.h" | 51 #include "chrome/browser/chromeos/native_dialog_window.h" |
51 #else | 52 #else |
52 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 53 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
53 #endif | 54 #endif |
54 | 55 |
55 // These conflict with base/tracked_objects.h, so need to come last. | |
56 #include <gdk/gdkx.h> | |
57 #include <gtk/gtk.h> | |
58 | |
59 namespace { | 56 namespace { |
60 | 57 |
61 #if defined(GOOGLE_CHROME_BUILD) | 58 #if defined(GOOGLE_CHROME_BUILD) |
62 static const char* kIconName = "google-chrome"; | 59 static const char* kIconName = "google-chrome"; |
63 #else | 60 #else |
64 static const char* kIconName = "chromium-browser"; | 61 static const char* kIconName = "chromium-browser"; |
65 #endif | 62 #endif |
66 | 63 |
67 const char kBoldLabelMarkup[] = "<span weight='bold'>%s</span>"; | 64 const char kBoldLabelMarkup[] = "<span weight='bold'>%s</span>"; |
68 | 65 |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 | 1202 |
1206 void DoCopy(BrowserWindow* window) { | 1203 void DoCopy(BrowserWindow* window) { |
1207 DoCutCopyPaste(window, &RenderViewHost::Copy, "copy-clipboard"); | 1204 DoCutCopyPaste(window, &RenderViewHost::Copy, "copy-clipboard"); |
1208 } | 1205 } |
1209 | 1206 |
1210 void DoPaste(BrowserWindow* window) { | 1207 void DoPaste(BrowserWindow* window) { |
1211 DoCutCopyPaste(window, &RenderViewHost::Paste, "paste-clipboard"); | 1208 DoCutCopyPaste(window, &RenderViewHost::Paste, "paste-clipboard"); |
1212 } | 1209 } |
1213 | 1210 |
1214 } // namespace gtk_util | 1211 } // namespace gtk_util |
OLD | NEW |