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

Unified Diff: ui/base/gtk/menu_label_accelerator_util.h

Issue 10316013: linux: Move linux_util.h from gfx/ to ui/base/gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to ui/base/gtk Created 8 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/gtk/menu_label_accelerator_util.h
diff --git a/ui/gfx/linux_util.h b/ui/base/gtk/menu_label_accelerator_util.h
similarity index 82%
rename from ui/gfx/linux_util.h
rename to ui/base/gtk/menu_label_accelerator_util.h
index a2136afc4d5d24c55a7376b52e002ea86bc249f2..276a85967a88af494989a7429ffc6b2cd08e38f4 100644
--- a/ui/gfx/linux_util.h
+++ b/ui/base/gtk/menu_label_accelerator_util.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_GFX_LINUX_UTIL_H_
-#define UI_GFX_LINUX_UTIL_H_
+#ifndef UI_BASE_GTK_MENU_LABEL_ACCELERATOR_UTIL_H_
+#define UI_BASE_GTK_MENU_LABEL_ACCELERATOR_UTIL_H_
#pragma once
#include <string>
#include "ui/base/ui_export.h"
-namespace gfx {
+namespace ui {
// Change windows accelerator style to GTK style. (GTK uses _ for
// accelerators. Windows uses & with && as an escape for &.)
@@ -25,6 +25,6 @@ UI_EXPORT std::string RemoveWindowsStyleAccelerators(const std::string& label);
// with "_" characters doubled, to escape them for GTK).
UI_EXPORT std::string EscapeWindowsStyleAccelerators(const std::string& label);
-} // namespace gfx
+} // namespace ui
-#endif // UI_GFX_LINUX_UTIL_H_
+#endif // UI_BASE_GTK_MENU_LABEL_ACCELERATOR_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698