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

Issue 2252423002: Refactoring button field and its type (2nd try) (Closed)

Created:
4 years, 4 months ago by Navid Zolghadr
Modified:
4 years, 4 months ago
CC:
chromium-reviews, asanka, blink-reviews-html_chromium.org, yusukes+watch_chromium.org, chromoting-reviews_chromium.org, gasubic, nzolghadr+blinkwatch_chromium.org, nasko+codewatch_chromium.org, browser-components-watch_chromium.org, fs, yzshen+watch_chromium.org, sievers+watch_chromium.org, dcheng, dtapuska+chromiumwatch_chromium.org, kinuko+watch, ben+mojo_chromium.org, miu+watch_chromium.org, extensions-reviews_chromium.org, qsr+mojo_chromium.org, blink-reviews-dom_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, dglazkov+blink, blink-reviews-events_chromium.org, darin-cc_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, vabr+watchlistautofill_chromium.org, chromium-apps-reviews_chromium.org, tdresser+watch_chromium.org, rwlbuis, blink-reviews-api_chromium.org, vcarbune.chromium, mlamouri+watch-content_chromium.org, nessy, creis+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, zoltan1, rouslan+autofill_chromium.org, eae+blinkwatch, blink-reviews-layout_chromium.org, sof, csharrison+watch_chromium.org, eric.carlson_apple.com, oshima+watch_chromium.org, kalyank, piman+watch_chromium.org, gcasto+watchlist_chromium.org, darin (slow to review), jochen+watch_chromium.org, szager+layoutwatch_chromium.org, dtapuska+blinkwatch_chromium.org, mlamouri+watch-test-runner_chromium.org, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, shuchen+watch_chromium.org, leviw+renderwatch, loading-reviews+metrics_chromium.org, jdonnelly+autofillwatch_chromium.org, Aaron Boodman, blink-reviews, davemoore+watch_chromium.org, estade+watch_chromium.org, danakj+watch_chromium.org, James Su, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring button field and its type (2nd try) The original CL (crrev.com/2227563003) which is the same as patchset 1 here got reverted due to memory problems and the fact that enum sizes were not int and created gaps inside the object memory space. - Remove m_button field from PlatformMouseEvent as there was one in WebPointerProperties. - Remove duplicate PlatformMouseEvent::MouseButton and WebScrollbarBehavior::Button enums and use WebPointerProperties::Button enum instead. - Making WebPointerProperties::Button an enum class. - Also cleanup related target for pointerevents. The related target for all pointerevents (similar to mouseevent) should be null except for boundary events. So relatedTarget can be removed from some of the functions as they don't send boundary events. TBR=pdr@chromium.org, bokan@chromium.org, dtapuska@chromium.org, mustaq@chromium.org, pfeldman@chromium.org, sky@chromium.org, thestig@chromium.org BUG=635670 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/656569e7720f728ee023447a270376ed17754dfc Cr-Commit-Position: refs/heads/master@{#413168}

Patch Set 1 : Previous Try #

Patch Set 2 : Increase the size of enum classes back to int #

Patch Set 3 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -431 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/apps/window_controls_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_server_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_service_worker_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/textinput_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/devtools_sanity_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/redirect_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/from_gws_page_load_metrics_observer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 13 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/password_manager/password_manager_interactive_uitest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/pdf/pdf_extension_test.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/plugins/plugin_power_saver_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/referrer_policy_browsertest.cc View 29 chunks +42 lines, -34 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 10 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/remoting/remote_desktop_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/printing/test/print_web_view_helper_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/test_runner/event_sender.h View 1 chunk +1 line, -1 line 0 comments Download
M components/test_runner/event_sender.cc View 14 chunks +27 lines, -27 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/color_picker.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/input_handler.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/main_thread_event_queue_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_aura.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_android.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_mac.mm View 1 2 3 chunks +11 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/test/render_view_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/event_conversion.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/webscrollbarbehavior_impl_gtkoraura.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/webscrollbarbehavior_impl_gtkoraura.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/webscrollbarbehavior_impl_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/webscrollbarbehavior_impl_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/converters/blink/blink_input_events_type_converters.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/MouseEvent.cpp View 5 chunks +4 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 5 chunks +25 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/RangeInputType.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/shadow/SpinButtonElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 11 chunks +16 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 7 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFrameSet.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PlatformMouseEvent.h View 4 chunks +4 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 2 chunks +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 5 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 10 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp View 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebPointerProperties.h View 1 4 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/public/platform/WebScrollbarBehavior.h View 2 chunks +3 lines, -7 lines 0 comments Download
M ui/events/blink/web_input_event.cc View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M ui/events/blink/web_input_event_builders_win.cc View 1 2 4 chunks +13 lines, -13 lines 0 comments Download
M ui/events/blink/web_input_event_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/web_input_event_unittest.cc View 1 2 11 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 35 (23 generated)
Navid Zolghadr
4 years, 4 months ago (2016-08-19 11:58:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2252423002/20001
4 years, 4 months ago (2016-08-19 11:59:53 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/241765)
4 years, 4 months ago (2016-08-19 12:06:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2252423002/40001
4 years, 4 months ago (2016-08-19 13:44:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2252423002/40001
4 years, 4 months ago (2016-08-19 14:14:41 UTC) #23
mustaq
LGTM. Please mention in the bug why the int8/int distinction matters here.
4 years, 4 months ago (2016-08-19 14:53:47 UTC) #24
Lei Zhang
- Please reference the CL for the first try - The CL description looks funny. ...
4 years, 4 months ago (2016-08-19 16:37:35 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-19 16:53:24 UTC) #27
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/656569e7720f728ee023447a270376ed17754dfc Cr-Commit-Position: refs/heads/master@{#413168}
4 years, 4 months ago (2016-08-19 16:56:18 UTC) #29
Navid Zolghadr
On 2016/08/19 16:37:35, Lei Zhang wrote: > - Please reference the CL for the first ...
4 years, 4 months ago (2016-08-19 17:31:28 UTC) #33
Lei Zhang
On 2016/08/19 17:31:28, Navid Zolghadr wrote: > I added a ref to the original CL. ...
4 years, 4 months ago (2016-08-19 17:46:53 UTC) #34
Navid Zolghadr
4 years, 4 months ago (2016-08-19 17:50:25 UTC) #35
Message was sent while issue was closed.
On 2016/08/19 17:46:53, Lei Zhang wrote:
> On 2016/08/19 17:31:28, Navid Zolghadr wrote:
> > I added a ref to the original CL.
> > I just copy pasted the description from the original CL. I guess I had added
> > that last line in here and I didn't pay attention to the length.
> 
> Thanks, though the commit landed with the old description. Oh well.
> 
> > The first patchset is the same as the original CL. Patchset 2 is the actual
> > change which I removed the size in WebPointerProperties.h + rebase. Patchset
3
> > is just a rebase.
> 
> There may not be a good way to do it from the command line, but I usually use
> the web interface to edit the description of patch set 1 to say "previous try"
> or something to that effect, to make it clear what's going on.

Sure. That's a great idea. I'll do that for my next CL that gets reverted.

> 
> Anyway, lgtm.

Powered by Google App Engine
This is Rietveld 408576698