Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2687)

Unified Diff: ash/common/system/tray/actionable_view.cc

Issue 2569773002: Fix SysTray focus rect position (Closed)
Patch Set: Rearrange MD checks Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/actionable_view.h ('k') | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/actionable_view.cc
diff --git a/ash/common/system/tray/actionable_view.cc b/ash/common/system/tray/actionable_view.cc
index 2dd90ed051d2ed1b49dc2d3cc17c47d390507161..bc97b678a312e6f0c2b5a888255ec5688b77cc8c 100644
--- a/ash/common/system/tray/actionable_view.cc
+++ b/ash/common/system/tray/actionable_view.cc
@@ -42,14 +42,10 @@ ActionableView::~ActionableView() {
}
void ActionableView::OnPaintFocus(gfx::Canvas* canvas) {
- gfx::RectF rect(GetFocusBounds());
+ gfx::RectF rect(GetLocalBounds());
canvas->DrawSolidFocusRect(rect, kFocusBorderColor, kFocusBorderThickness);
}
-gfx::Rect ActionableView::GetFocusBounds() {
- return GetLocalBounds();
-}
-
void ActionableView::HandlePerformActionResult(bool action_performed,
const ui::Event& event) {
AnimateInkDrop(action_performed ? views::InkDropState::ACTION_TRIGGERED
« no previous file with comments | « ash/common/system/tray/actionable_view.h ('k') | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698