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

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed)

Created:
9 years, 11 months ago by msw
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., jam, Aaron Boodman, pam+watch_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, tfarina, sail, Nico
Visibility:
Public.

Description

Cross-platform CL to remove app/win/win_util.h&cc and related work. See Issue 70141 for the full move details; see my inline review comments. Changes significantly different from or beyond those prescribed by the bug: *Consolidated a lot of GrabWindowSnapshot code. *Moved EnsureRectIsVisibleInRect to views::internal namespace for test access. *Moved app/win/win_util_unittest.cc to views/window/window_win_unittest.h *Named ui/base/message_box_win.h instead of ui/base/message_box.h *Made WindowWin::GetWindowTitleFont static; needed in static contexts. *Denoted WindowWin::FrameTypeChanged as a Window override, moved code. *Moved TestGrabWindowSnapshot into new file: chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm BUG=70141 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73589

Patch Set 1 : Code cleanup #

Total comments: 6

Patch Set 2 : Consolidate GrabWindowSnapshot, fix nits #

Patch Set 3 : Add MockCrAppWorkaround #

Patch Set 4 : Initialize MockCrApp in a better way #

Patch Set 5 : Initialize NSApp as CrApplication for ChromeTestSuite #

Patch Set 6 : Merge with NSApp changes in r73581 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+811 lines, -770 lines) Patch
M app/app.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
M app/app_base.gypi View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
D app/win/win_util.h View 1 chunk +0 lines, -114 lines 0 comments Download
D app/win/win_util.cc View 1 chunk +0 lines, -326 lines 0 comments Download
M base/base_switches.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M base/mac/mac_util.h View 1 2 3 chunks +0 lines, -8 lines 0 comments Download
M base/mac/mac_util.mm View 1 2 2 chunks +0 lines, -31 lines 0 comments Download
M base/mac/mac_util_unittest.mm View 1 2 3 4 5 3 chunks +0 lines, -32 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 8 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/browser_main_win.cc View 6 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/dom_ui/bug_report_ui.cc View 1 2 3 chunks +3 lines, -13 lines 0 comments Download
M chrome/browser/download/base_file.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 3 chunks +39 lines, -2 lines 0 comments Download
M chrome/browser/enumerate_modules_model_win.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_startup.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/importer/importer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/platform_util_win.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/bug_report_window_controller.mm View 1 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_win.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 3 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/window_snapshot/window_snapshot.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/ui/window_snapshot/window_snapshot_mac.mm View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/ui/window_snapshot/window_snapshot_mac_unittest.mm View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/window_snapshot/window_snapshot_win.cc View 1 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/ui/window_snapshot/window_snapshot_x.cc View 1 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/sandbox_policy.cc View 2 chunks +1 line, -2 lines 0 comments Download
A chrome/common/section_util_win.h View 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/common/section_util_win.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_proxy.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M printing/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M printing/printed_document_win.cc View 3 chunks +43 lines, -4 lines 0 comments Download
A ui/base/message_box_win.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A ui/base/message_box_win.cc View 1 chunk +41 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.h View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 1 chunk +0 lines, -48 lines 0 comments Download
M views/controls/textfield/native_textfield_win.h View 1 chunk +12 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 3 chunks +33 lines, -3 lines 0 comments Download
M views/controls/textfield/textfield.cc View 2 chunks +1 line, -2 lines 0 comments Download
M views/views.gyp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A views/widget/monitor_win.h View 1 chunk +21 lines, -0 lines 0 comments Download
A views/widget/monitor_win.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M views/widget/tooltip_manager_win.cc View 5 chunks +4 lines, -4 lines 0 comments Download
M views/widget/widget_win.cc View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M views/window/custom_frame_view.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M views/window/window_win.h View 3 chunks +16 lines, -4 lines 0 comments Download
M views/window/window_win.cc View 1 2 7 chunks +117 lines, -46 lines 0 comments Download
A + views/window/window_win_unittest.cc View 1 chunk +12 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
msw
Ready for review! I'm going to preemptively tackle this nits: *Update copyright in base/mac/mac_util.mm *Reorder ...
9 years, 11 months ago (2011-01-27 17:34:43 UTC) #1
msw
On 2011/01/27 17:34:43, msw wrote: > Ready for review! > I'm going to preemptively tackle ...
9 years, 11 months ago (2011-01-27 17:35:19 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/6386009/diff/10001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/6386009/diff/10001/chrome/browser/ui/views/frame/browser_view.cc#newcode1147 chrome/browser/ui/views/frame/browser_view.cc:1147: MB_OK | MB_ICONWARNING | MB_TOPMOST); Can this whole function ...
9 years, 11 months ago (2011-01-27 18:44:21 UTC) #3
Ben Goodger (Google)
Question... Do people call platform_util::MessageBox or whatever it's called a lot? Do people in code ...
9 years, 11 months ago (2011-01-27 18:51:00 UTC) #4
msw
I finally solved the Mac test initialization problems! Please review. Regarding your MessageBox questions: There ...
9 years, 10 months ago (2011-02-01 23:12:56 UTC) #5
msw
9 years, 10 months ago (2011-02-03 05:21:48 UTC) #6
Ben gave this change a verbal LGTM this afternoon.
I'm going to land this imminently, please alert me of any outstanding concerns.
I removed the NSApp changes, as those were addressed by r73581.
Thanks,
Mike

Powered by Google App Engine
This is Rietveld 408576698