Commit d9065f9b authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

[ui] Add trace event during synchronous call to TrackPopupMenu()

R=robliao@chromium.org

Bug: 1076029
Change-Id: I408cc412367ef65cb52b1fd9dc98b5d64a26d36e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2510796
Commit-Queue: Gabriel Charette <gab@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822815}
parent 22d5b7d4
......@@ -5,6 +5,7 @@
#include "ui/views/win/hwnd_util.h"
#include "base/i18n/rtl.h"
#include "base/trace_event/base_tracing.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/views/widget/widget.h"
......@@ -46,6 +47,8 @@ gfx::Rect GetWindowBoundsForClientBounds(View* view,
}
void ShowSystemMenuAtScreenPixelLocation(HWND window, const gfx::Point& point) {
TRACE_EVENT0("ui", "ShowSystemMenuAtScreenPixelLocation");
UINT flags = TPM_LEFTALIGN | TPM_TOPALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD;
if (base::i18n::IsRTL())
flags |= TPM_RIGHTALIGN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment