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

Unified Diff: ui/base/accelerators/platform_accelerator_gtk.h

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: ui/base/accelerators/platform_accelerator_gtk.h
diff --git a/ui/base/accelerators/platform_accelerator_gtk.h b/ui/base/accelerators/platform_accelerator_gtk.h
deleted file mode 100644
index 59c8fa0744c7368a8544621efc6f956afcd420f7..0000000000000000000000000000000000000000
--- a/ui/base/accelerators/platform_accelerator_gtk.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_
-#define UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_
-
-#include <gdk/gdk.h>
-
-#include "base/compiler_specific.h"
-#include "ui/base/accelerators/accelerator.h"
-#include "ui/base/accelerators/platform_accelerator.h"
-
-namespace ui {
-
-class Accelerator;
-
-// This is a GTK specific class for specifing accelerator keys.
-class UI_BASE_EXPORT PlatformAcceleratorGtk : public PlatformAccelerator {
- public:
- PlatformAcceleratorGtk();
- PlatformAcceleratorGtk(guint gdk_key_code, GdkModifierType gdk_modifier);
- virtual ~PlatformAcceleratorGtk();
-
- // PlatformAccelerator:
- virtual scoped_ptr<PlatformAccelerator> CreateCopy() const OVERRIDE;
- virtual bool Equals(const PlatformAccelerator& rhs) const OVERRIDE;
-
- guint gdk_key_code() const { return gdk_key_code_; }
- GdkModifierType gdk_modifier() const { return gdk_modifier_; }
-
- private:
- guint gdk_key_code_;
- GdkModifierType gdk_modifier_;
-
- DISALLOW_COPY_AND_ASSIGN(PlatformAcceleratorGtk);
-};
-
-UI_BASE_EXPORT Accelerator AcceleratorForGdkKeyCodeAndModifier(
- guint gdk_key_code,
- GdkModifierType gdk_modifier);
-UI_BASE_EXPORT guint
- GetGdkKeyCodeForAccelerator(const Accelerator& accelerator);
-UI_BASE_EXPORT GdkModifierType GetGdkModifierForAccelerator(
- const Accelerator& accelerator);
-
-} // namespace ui
-
-#endif // UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698