diff options
author | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-02 16:01:29 +0000 |
---|---|---|
committer | droger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-02 16:01:29 +0000 |
commit | dbe9bfab6e9b264b1b339e8c1c422f0b5dfa2a6c (patch) | |
tree | e644b6d42f97c38a12541ac8a2f13fcb849725fe /components/infobars | |
parent | 603ed1e862e48615acadc96724749529487f8947 (diff) | |
download | chromium_src-dbe9bfab6e9b264b1b339e8c1c422f0b5dfa2a6c.zip chromium_src-dbe9bfab6e9b264b1b339e8c1c422f0b5dfa2a6c.tar.gz chromium_src-dbe9bfab6e9b264b1b339e8c1c422f0b5dfa2a6c.tar.bz2 |
Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component.
To solve the dependency on chrome_command_ids, this CL removes the
IDC_OPTIONS_TRANSLATE_* constants and instead defines the command IDs
locally in the file, which is an approach already used at several other places in
the code.
To solve the dependency on themes, the icon ID for the translate infobar is no
longer hardcoded, but fetched from the translate client instead.
BUG=371845
TBR=estade, joaodasilva
Review URL: https://codereview.chromium.org/284313008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/infobars')
-rw-r--r-- | components/infobars/core/infobar_android.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/infobars/core/infobar_android.cc b/components/infobars/core/infobar_android.cc new file mode 100644 index 0000000..60258f8 --- /dev/null +++ b/components/infobars/core/infobar_android.cc @@ -0,0 +1,15 @@ +// Copyright 2014 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. + +#include "components/infobars/core/infobar.h" + +// Static constants defined in infobar.h. We don't really use them for anything +// but they are required. The values are copied from the GTK implementation. +const int infobars::InfoBar::kSeparatorLineHeight = 1; +const int infobars::InfoBar::kDefaultArrowTargetHeight = 9; +const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; +const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = + kDefaultArrowTargetHeight; +const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; +const int infobars::InfoBar::kDefaultBarTargetHeight = 36; |