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

Side by Side Diff: ui/base/accelerators/platform_accelerator_gtk.h

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 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) 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 #ifndef UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_ 5 #ifndef UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_
6 #define UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_ 6 #define UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_
7 7
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/base/accelerators/accelerator.h" 11 #include "ui/base/accelerators/accelerator.h"
12 #include "ui/base/accelerators/platform_accelerator.h" 12 #include "ui/base/accelerators/platform_accelerator.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class Accelerator; 16 class Accelerator;
17 17
18 // This is a GTK specific class for specifing accelerator keys. 18 // This is a GTK specific class for specifing accelerator keys.
19 class UI_EXPORT PlatformAcceleratorGtk : public PlatformAccelerator { 19 class UI_BASE_EXPORT PlatformAcceleratorGtk : public PlatformAccelerator {
20 public: 20 public:
21 PlatformAcceleratorGtk(); 21 PlatformAcceleratorGtk();
22 PlatformAcceleratorGtk(guint gdk_key_code, GdkModifierType gdk_modifier); 22 PlatformAcceleratorGtk(guint gdk_key_code, GdkModifierType gdk_modifier);
23 virtual ~PlatformAcceleratorGtk(); 23 virtual ~PlatformAcceleratorGtk();
24 24
25 // PlatformAccelerator: 25 // PlatformAccelerator:
26 virtual scoped_ptr<PlatformAccelerator> CreateCopy() const OVERRIDE; 26 virtual scoped_ptr<PlatformAccelerator> CreateCopy() const OVERRIDE;
27 virtual bool Equals(const PlatformAccelerator& rhs) const OVERRIDE; 27 virtual bool Equals(const PlatformAccelerator& rhs) const OVERRIDE;
28 28
29 guint gdk_key_code() const { return gdk_key_code_; } 29 guint gdk_key_code() const { return gdk_key_code_; }
30 GdkModifierType gdk_modifier() const { return gdk_modifier_; } 30 GdkModifierType gdk_modifier() const { return gdk_modifier_; }
31 31
32 private: 32 private:
33 guint gdk_key_code_; 33 guint gdk_key_code_;
34 GdkModifierType gdk_modifier_; 34 GdkModifierType gdk_modifier_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(PlatformAcceleratorGtk); 36 DISALLOW_COPY_AND_ASSIGN(PlatformAcceleratorGtk);
37 }; 37 };
38 38
39 UI_EXPORT Accelerator AcceleratorForGdkKeyCodeAndModifier( 39 UI_BASE_EXPORT Accelerator AcceleratorForGdkKeyCodeAndModifier(
40 guint gdk_key_code, 40 guint gdk_key_code,
41 GdkModifierType gdk_modifier); 41 GdkModifierType gdk_modifier);
42 UI_EXPORT guint GetGdkKeyCodeForAccelerator(const Accelerator& accelerator); 42 UI_BASE_EXPORT guint
43 UI_EXPORT GdkModifierType GetGdkModifierForAccelerator( 43 GetGdkKeyCodeForAccelerator(const Accelerator& accelerator);
44 UI_BASE_EXPORT GdkModifierType GetGdkModifierForAccelerator(
44 const Accelerator& accelerator); 45 const Accelerator& accelerator);
45 46
46 } // namespace ui 47 } // namespace ui
47 48
48 #endif // UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_ 49 #endif // UI_BASE_ACCELERATORS_PLATFORM_ACCELERATOR_GTK_H_
OLDNEW
« no previous file with comments | « ui/base/accelerators/platform_accelerator_cocoa.h ('k') | ui/base/accessibility/accessible_text_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698