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

Unified Diff: views/controls/menu/native_menu_linux.h

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merged native_menu_wayland and native_menu_x and styling fixes Created 9 years, 4 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: views/controls/menu/native_menu_linux.h
diff --git a/views/controls/menu/native_menu_x.h b/views/controls/menu/native_menu_linux.h
similarity index 80%
rename from views/controls/menu/native_menu_x.h
rename to views/controls/menu/native_menu_linux.h
index 2621fb35569bfda330562bf04cb1c54e5257d158..006d287bf2dac864504b1eeda86fc1252a9f1b70 100644
--- a/views/controls/menu/native_menu_x.h
+++ b/views/controls/menu/native_menu_linux.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_X_H_
-#define VIEWS_CONTROLS_MENU_NATIVE_MENU_X_H_
+#ifndef VIEWS_CONTROLS_MENU_NATIVE_MENU_LINUX_H_
+#define VIEWS_CONTROLS_MENU_NATIVE_MENU_LINUX_H_
#pragma once
#include "views/controls/menu/menu_delegate.h"
@@ -17,11 +17,11 @@ class MenuModel;
namespace views {
// A non-GTK implementation of MenuWrapper, used currently for touchui.
-class NativeMenuX : public MenuWrapper,
- public MenuDelegate {
+class NativeMenuLinux : public MenuWrapper,
+ public MenuDelegate {
public:
- explicit NativeMenuX(Menu2* menu);
- virtual ~NativeMenuX();
+ explicit NativeMenuLinux(Menu2* menu);
+ virtual ~NativeMenuLinux();
// Overridden from MenuWrapper:
virtual void RunMenuAt(const gfx::Point& point, int alignment);
@@ -48,9 +48,9 @@ class NativeMenuX : public MenuWrapper,
ui::MenuModel* model_;
scoped_ptr<MenuItemView> root_;
- DISALLOW_COPY_AND_ASSIGN(NativeMenuX);
+ DISALLOW_COPY_AND_ASSIGN(NativeMenuLinux);
};
} // namespace views
-#endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_X_H_
+#endif // VIEWS_CONTROLS_MENU_NATIVE_MENU_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698