bool left_mouse_click) {
// Pass to the observer if appropriate.
if (left_mouse_click) {
- NotifyClicked();
+ NOTIFYICONIDENTIFIER icon_id;
+ memset(&icon_id, 0, sizeof(NOTIFYICONIDENTIFIER));
+ icon_id.uID = icon_id_;
+ icon_id.hWnd = window_;
+ icon_id.cbSize = sizeof(NOTIFYICONIDENTIFIER);
+
+ RECT rect;
+ Shell_NotifyIconGetRect(&icon_id, &rect);
+
+ int width = rect.right - rect.left;
+ int height = rect.bottom - rect.top;
+ NotifyClicked(gfx::Rect(rect.left, rect.top, width, height));
return;
}