diff options
author | avayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 20:56:48 +0000 |
---|---|---|
committer | avayvod@chromium.org <avayvod@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 20:56:48 +0000 |
commit | c32f04146677ab69289f661de3236fda5791c953 (patch) | |
tree | 5e2bd8a649cf69696ea236bed422898e0e1e8957 /views/controls/menu/menu_2.h | |
parent | 2c58e65c67d21074424eeeb2673a995d42a6614e (diff) | |
download | chromium_src-c32f04146677ab69289f661de3236fda5791c953.zip chromium_src-c32f04146677ab69289f661de3236fda5791c953.tar.gz chromium_src-c32f04146677ab69289f661de3236fda5791c953.tar.bz2 |
Fixed alignment of button dropdowns for RTL languages.
BUG=none
TEST=Run chrome with LANGUAGE=ar or with --lang=ar. Verify that all status
area menus as well as main menu are aligned properly (go to the right, not
to the left).
Review URL: http://codereview.chromium.org/601032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/menu/menu_2.h')
-rw-r--r-- | views/controls/menu/menu_2.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/views/controls/menu/menu_2.h b/views/controls/menu/menu_2.h index 1000d86..77ff3d0 100644 --- a/views/controls/menu/menu_2.h +++ b/views/controls/menu/menu_2.h @@ -1,9 +1,9 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this +// Copyright (c) 2010 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 CONTROLS_MENU_VIEWS_MENU_2_H_ -#define CONTROLS_MENU_VIEWS_MENU_2_H_ +#ifndef VIEWS_CONTROLS_MENU_MENU_2_H_ +#define VIEWS_CONTROLS_MENU_MENU_2_H_ #include "app/menus/menu_model.h" #include "base/scoped_ptr.h" @@ -16,6 +16,7 @@ class Point; namespace views { class NativeMenuGtk; +class View; // A menu. Populated from a model, and relies on a delegate to execute commands. // @@ -34,6 +35,7 @@ class Menu2 { virtual ~Menu2() {} // How the menu is aligned relative to the point it is shown at. + // The alignment is reversed by menu if text direction is right to left. enum Alignment { ALIGN_TOPLEFT, ALIGN_TOPRIGHT @@ -75,4 +77,5 @@ class Menu2 { } // namespace views -#endif // CONTROLS_MENU_VIEWS_MENU_2_H_ +#endif // VIEWS_CONTROLS_MENU_MENU_2_H_ + |