| OLD | NEW |
| 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/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 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cstdarg> | 10 #include <cstdarg> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "chrome/browser/chromeos/frame/browser_view.h" | 48 #include "chrome/browser/chromeos/frame/browser_view.h" |
| 49 #include "chrome/browser/chromeos/native_dialog_window.h" | 49 #include "chrome/browser/chromeos/native_dialog_window.h" |
| 50 #else | 50 #else |
| 51 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 51 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 // These conflict with base/tracked_objects.h, so need to come last. | 54 // These conflict with base/tracked_objects.h, so need to come last. |
| 55 #include <gdk/gdkx.h> // NOLINT | 55 #include <gdk/gdkx.h> // NOLINT |
| 56 #include <gtk/gtk.h> // NOLINT | 56 #include <gtk/gtk.h> // NOLINT |
| 57 | 57 |
| 58 using content::RenderWidgetHost; |
| 58 using content::WebContents; | 59 using content::WebContents; |
| 59 | 60 |
| 60 namespace { | 61 namespace { |
| 61 | 62 |
| 62 #if defined(GOOGLE_CHROME_BUILD) | 63 #if defined(GOOGLE_CHROME_BUILD) |
| 63 static const char* kIconName = "google-chrome"; | 64 static const char* kIconName = "google-chrome"; |
| 64 #else | 65 #else |
| 65 static const char* kIconName = "chromium-browser"; | 66 static const char* kIconName = "chromium-browser"; |
| 66 #endif | 67 #endif |
| 67 | 68 |
| (...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 | 1322 |
| 1322 void DoCopy(BrowserWindow* window) { | 1323 void DoCopy(BrowserWindow* window) { |
| 1323 DoCutCopyPaste(window, &RenderWidgetHost::Copy, "copy-clipboard"); | 1324 DoCutCopyPaste(window, &RenderWidgetHost::Copy, "copy-clipboard"); |
| 1324 } | 1325 } |
| 1325 | 1326 |
| 1326 void DoPaste(BrowserWindow* window) { | 1327 void DoPaste(BrowserWindow* window) { |
| 1327 DoCutCopyPaste(window, &RenderWidgetHost::Paste, "paste-clipboard"); | 1328 DoCutCopyPaste(window, &RenderWidgetHost::Paste, "paste-clipboard"); |
| 1328 } | 1329 } |
| 1329 | 1330 |
| 1330 } // namespace gtk_util | 1331 } // namespace gtk_util |
| OLD | NEW |