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

Issue 307623002: MacViews: Replace NativeWidget::GetEventHandler() with RepostNativeEvent(..) (Closed)

Created:
6 years, 6 months ago by tapted
Modified:
6 years, 6 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@20140528-MacViews-examples_exe
Visibility:
Public.

Description

MacViews: Replace NativeWidget::GetEventHandler() with RepostNativeEvent(..) This removes an aura dependency in webview/web_dialog_view.cc and is a step towards getting the views_examples target compiling on Mac. NativeWidget::GetEventHandler isn't used elsewhere. Pre-Aura Win would use ::DefWindowProc() in WebDialogView::HandleKeyboardEvent(), so NativeWidget feels like the right place for this. BUG=366007 TEST=Just refactoring Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273793

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : stray header (oops) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -42 lines) Patch
M ui/views/controls/webview/web_dialog_view.cc View 1 2 chunks +2 lines, -8 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M ui/views/widget/native_widget.h View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 1 chunk +2 lines, -5 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
tapted
Hi sadrul, please take a look I've split this off from crrev/297143009 which has a ...
6 years, 6 months ago (2014-05-28 12:36:21 UTC) #1
tapted
sadrul: ping?
6 years, 6 months ago (2014-05-29 21:35:08 UTC) #2
sadrul
https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc File ui/views/controls/webview/web_dialog_view.cc (left): https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc#oldcode283 ui/views/controls/webview/web_dialog_view.cc:283: ui::KeyEvent aura_event(event.os_event->native_event(), false); On 2014/05/28 12:36:21, tapted wrote: > ...
6 years, 6 months ago (2014-05-29 23:09:27 UTC) #3
tapted
will address other comments, but an initial note on one: https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc File ui/views/controls/webview/web_dialog_view.cc (left): https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc#oldcode283 ...
6 years, 6 months ago (2014-05-29 23:36:19 UTC) #4
tapted
PTAL https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc File ui/views/controls/webview/web_dialog_view.cc (left): https://codereview.chromium.org/307623002/diff/1/ui/views/controls/webview/web_dialog_view.cc#oldcode283 ui/views/controls/webview/web_dialog_view.cc:283: ui::KeyEvent aura_event(event.os_event->native_event(), false); On 2014/05/29 23:36:19, tapted wrote: ...
6 years, 6 months ago (2014-05-30 01:59:44 UTC) #5
sadrul
LGTM https://codereview.chromium.org/307623002/diff/40001/ui/views/widget/native_widget.h File ui/views/widget/native_widget.h (right): https://codereview.chromium.org/307623002/diff/40001/ui/views/widget/native_widget.h#newcode8 ui/views/widget/native_widget.h:8: #include "ui/gfx/native_widget_types.h" You probably don't need this.
6 years, 6 months ago (2014-05-30 02:26:53 UTC) #6
tapted
https://codereview.chromium.org/307623002/diff/40001/ui/views/widget/native_widget.h File ui/views/widget/native_widget.h (right): https://codereview.chromium.org/307623002/diff/40001/ui/views/widget/native_widget.h#newcode8 ui/views/widget/native_widget.h:8: #include "ui/gfx/native_widget_types.h" On 2014/05/30 02:26:55, sadrul wrote: > You ...
6 years, 6 months ago (2014-05-30 03:03:26 UTC) #7
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 6 months ago (2014-05-30 03:05:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/307623002/60001
6 years, 6 months ago (2014-05-30 03:06:26 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 07:18:58 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 10:35:42 UTC) #11
Message was sent while issue was closed.
Change committed as 273793

Powered by Google App Engine
This is Rietveld 408576698