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

Unified Diff: chrome/browser/ui/gtk/accelerator_utils_gtk.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/accelerator_utils_gtk.cc
diff --git a/chrome/browser/ui/gtk/accelerator_utils_gtk.cc b/chrome/browser/ui/gtk/accelerator_utils_gtk.cc
deleted file mode 100644
index d780ef02e1fdf1d014ee93c80332d5b21aa33794..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/accelerator_utils_gtk.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/gtk/accelerators_gtk.h"
-#include "ui/base/accelerators/accelerator.h"
-
-namespace chrome {
-
-bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) {
- AcceleratorsGtk* accelerators = AcceleratorsGtk::GetInstance();
- for (AcceleratorsGtk::const_iterator iter = accelerators->begin();
- iter != accelerators->end(); ++iter) {
- if (iter->second.key_code() == accelerator.key_code() &&
- iter->second.modifiers() == accelerator.modifiers())
- return true;
- }
-
- return false;
-}
-
-ui::Accelerator GetPrimaryChromeAcceleratorForCommandId(int command_id) {
- AcceleratorsGtk* accelerators = AcceleratorsGtk::GetInstance();
- const ui::Accelerator* accelerator =
- accelerators->GetPrimaryAcceleratorForCommand(command_id);
-
- return accelerator ? *accelerator : ui::Accelerator();
-}
-
-} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698