Repository navigation
Conversation
In preparation for renaming tip_lang_bar* to something more appropriate (google#1600), this commit simplifies the code by folding no-longer-needed abstractions into TipLangBarButton to make the renaming easier. This is doable because the legacy floating language bar support was removed recently [1]. The only remaining language bar item is the input mode button shown in the system tray, which is always a non-menu button with TF_LBI_STYLE_SHOWNINTRAY. The class hierarchy changes as follows: Before: TipLangBarButton implements ITfLangBarItemButton, ITfSource, IMozcLangBarItem TipLangBarToggleButton extends TipLangBarButton implements IMozcLangBarToggleItem (overrides QueryInterface, AddRef, and Release because of the multiple inheritance) After: TipLangBarButton implements ITfLangBarItemButton, ITfSource There must be no observable behavior change. Changes in GetStatus() and OnMenuSelect() should be safe for the current code paths. [1]: 6a4cd62
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In preparation for renaming
tip_lang_bar*to something more appropriate (#1600), this commit simplifies the code by folding no-longer-needed abstractions intoTipLangBarButtonto make the renaming easier.This is doable because the legacy floating language bar support was removed recently (6a4cd62). The only remaining language bar item is the input mode button shown in the system tray, which is always a non-menu button with
TF_LBI_STYLE_SHOWNINTRAY.The class hierarchy changes as follows:
There must be no observable behavior change. Changes in
GetStatus()andOnMenuSelect()should be safe for the current code paths.Issue IDs
TipLangBarand related classes to something more appropriate #1600Steps to test new behaviors (if any)
Additional context
Before:
After: