commit | 237be1e74cd01009d94c6fc445e6aae6030269a6 | [log] [tgz] |
---|---|---|
author | Tom Anderson <thomasanderson@chromium.org> | Fri Nov 03 03:11:21 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 03 03:11:21 2017 |
tree | 68ebf1875551d23545a6995bd5954f460ec99960 | |
parent | e801961c799264484584c7bfca14b8d408afc44b [diff] |
Gtk: Ensure AvatarButton has pressed state when menu is showing When using the GTK theme with --enable-native-avatar-button, it's required that the avatar button have the pressed state when the profile chooser menu is showing so that it looks pressed. Previously, the pressed state was handled by manually setting the ink drop animation state. Now, AvatarButton is made a sublcass of MenuButton and reuses code from there to handle ink drop animation, and ensuring the state becomes pressed. Also, this incidentally fixes a bug where the ink drop would get stuck when right clicking on the avatar button. BUG=753067 R=msw@chromium.org CC=sky@chromium.org Change-Id: I6aafb5499e230859ea1ebe1c5ca6e2375ea63994 Reviewed-on: https://chromium-review.googlesource.com/744967 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by: Michael Wasserman <msw@chromium.org> Cr-Commit-Position: refs/heads/master@{#513662}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .