diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:36:57 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:36:57 +0000 |
commit | 0755672a1e8bad7e9efd4b932836ab51a25cca18 (patch) | |
tree | f0a6f0c68c9899e3fe460c870e825ce5e1c1755e /chrome/browser/ui_thread_helpers_linux.cc | |
parent | 9bf103edf104b4e4174a3ba22da9af6816858033 (diff) | |
download | chromium_src-0755672a1e8bad7e9efd4b932836ab51a25cca18.zip chromium_src-0755672a1e8bad7e9efd4b932836ab51a25cca18.tar.gz chromium_src-0755672a1e8bad7e9efd4b932836ab51a25cca18.tar.bz2 |
[Mac] Don't close the Wrench menu after using the zoom buttons if the menu was opened sticky.
This runs the Task that updates the zoom information in the UI thread outside of the
normal MessageLoop and instead runs it on the native run loop.
R=mark
BUG=48679
TEST=Open Wrench menu with a click. Use zoom buttons. Menu stays open and page zooms. Other buttons still close menu.
TEST=Open Wrench menu with click-hold-drag. Hover and release on zoom buttons. Menu closes and page zooms.
Review URL: http://codereview.chromium.org/3183013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui_thread_helpers_linux.cc')
-rw-r--r-- | chrome/browser/ui_thread_helpers_linux.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/ui_thread_helpers_linux.cc b/chrome/browser/ui_thread_helpers_linux.cc new file mode 100644 index 0000000..41721c3 --- /dev/null +++ b/chrome/browser/ui_thread_helpers_linux.cc @@ -0,0 +1,18 @@ +// 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. + +#include "chrome/browser/ui_thread_helpers.h" + +#include "base/task.h" +#include "chrome/browser/chrome_thread.h" + +namespace ui_thread_helpers { + +bool PostTaskWhileRunningMenu(const tracked_objects::Location& from_here, + Task* task) { + // TODO(rsesek): Implementing Linux behavior may fix http://crbug.com/48240 + return ChromeThread::PostTask(ChromeThread::UI, from_here, task); +} + +} // namespace ui_thread_helpers |