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

Issue 8549008: Extract MonitorInfoProvider from WindowSizer. (Closed)

Created:
9 years, 1 month ago by tfarina
Modified:
9 years ago
CC:
chromium-reviews, jennb, prasadt, jianli, Dmitry Titov, msw+watch_chromium.org, dcheng, Paweł Hajdan Jr., alicet1
Visibility:
Public.

Description

Extract MonitorInfoProvider from WindowSizer. And move the functionality into gfx::Screen. BUG=101507 R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113531

Patch Set 1 : #

Patch Set 2 : rebase #

Patch Set 3 : rebase 2 #

Total comments: 10

Patch Set 4 : rm unused functions pointed by Ben #

Patch Set 5 : mv work_areas_ to unittest #

Patch Set 6 : add the MonitorInfoProvider functions as static functions to gfx::Screen #

Patch Set 7 : rm MonitorEnumProc #

Patch Set 8 : implement Screen aura #

Patch Set 9 : implement Screen win #

Patch Set 10 : implement Screen gtk #

Patch Set 11 : implement Screen mac #

Patch Set 12 : use gfx::Screen in places of MonitorInfoProvider #

Patch Set 13 : exclude monitor_info_provider* files #

Patch Set 14 : rm const from static functions #

Patch Set 15 : rm more consts #

Patch Set 16 : include missing ui/gfx/screen.h #

Patch Set 17 : ConvertCoordinateSystem should be defined before GetMatchingScreen, so GetMatchingScreen can see it #

Patch Set 18 : #

Patch Set 19 : fix WindowSizer unittests per Ben's suggestion #

Total comments: 1

Patch Set 20 : add docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -396 lines) Patch
chrome/browser/chromeos/notifications/balloon_collection_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/pdf_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/window_sizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +25 lines, -50 lines 0 comments Download
M chrome/browser/ui/window_sizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +28 lines, -36 lines 0 comments Download
M chrome/browser/ui/window_sizer_aura.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/ui/window_sizer_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -85 lines 0 comments Download
M chrome/browser/ui/window_sizer_mac.mm View 1 chunk +3 lines, -98 lines 0 comments Download
M chrome/browser/ui/window_sizer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/window_sizer_win.cc View 1 chunk +0 lines, -60 lines 0 comments Download
M ui/gfx/screen.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gfx/screen_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M ui/gfx/screen_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +63 lines, -0 lines 0 comments Download
M ui/gfx/screen_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +62 lines, -0 lines 0 comments Download
M ui/gfx/screen_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tfarina
9 years, 1 month ago (2011-11-18 18:12:25 UTC) #1
Ben Goodger (Google)
No more code reviews on this random stuff until we finish the views -> ui/views ...
9 years, 1 month ago (2011-11-18 18:14:26 UTC) #2
tfarina
On 2011/11/18 18:14:26, Ben Goodger (Google) wrote: > No more code reviews on this random ...
9 years ago (2011-12-02 11:47:44 UTC) #3
Ben Goodger (Google)
http://codereview.chromium.org/8549008/diff/22001/chrome/browser/ui/monitor_info_provider.h File chrome/browser/ui/monitor_info_provider.h (right): http://codereview.chromium.org/8549008/diff/22001/chrome/browser/ui/monitor_info_provider.h#newcode18 chrome/browser/ui/monitor_info_provider.h:18: class MonitorInfoProvider { So, I actually think we can ...
9 years ago (2011-12-02 17:10:32 UTC) #4
tfarina
http://codereview.chromium.org/8549008/diff/22001/chrome/browser/ui/monitor_info_provider.h File chrome/browser/ui/monitor_info_provider.h (right): http://codereview.chromium.org/8549008/diff/22001/chrome/browser/ui/monitor_info_provider.h#newcode18 chrome/browser/ui/monitor_info_provider.h:18: class MonitorInfoProvider { On 2011/12/02 17:10:32, Ben Goodger (Google) ...
9 years ago (2011-12-02 17:24:43 UTC) #5
Ben Goodger (Google)
On Fri, Dec 2, 2011 at 9:24 AM, <tfarina@chromium.org> wrote: > On 2011/12/02 17:10:32, Ben ...
9 years ago (2011-12-02 17:29:13 UTC) #6
tfarina
On 2011/12/02 17:29:13, Ben Goodger (Google) wrote: > On Fri, Dec 2, 2011 at 9:24 ...
9 years ago (2011-12-02 18:26:45 UTC) #7
Ben Goodger (Google)
LGTM once you exclude the DEPS file change. http://codereview.chromium.org/8549008/diff/25047/DEPS File DEPS (right): http://codereview.chromium.org/8549008/diff/25047/DEPS#newcode41 DEPS:41: "v8_revision": ...
9 years ago (2011-12-02 19:05:36 UTC) #8
tfarina
On 2011/12/02 19:05:36, Ben Goodger (Google) wrote: > LGTM once you exclude the DEPS file ...
9 years ago (2011-12-02 19:31:07 UTC) #9
Ben Goodger (Google)
lgtm
9 years ago (2011-12-02 20:30:14 UTC) #10
tfarina
On 2011/12/02 20:30:14, Ben Goodger (Google) wrote: > lgtm Ben, what I do about the ...
9 years ago (2011-12-02 21:22:14 UTC) #11
tfarina
On 2011/12/02 21:22:14, tfarina wrote: > On 2011/12/02 20:30:14, Ben Goodger (Google) wrote: > > ...
9 years ago (2011-12-06 01:01:34 UTC) #12
Ben Goodger (Google)
Maybe you still need something like MIP... but implemented in terms of Screen for real ...
9 years ago (2011-12-06 16:38:10 UTC) #13
tfarina
On 2011/12/06 16:38:10, Ben Goodger (Google) wrote: > Maybe you still need something like MIP... ...
9 years ago (2011-12-06 18:11:17 UTC) #14
Ben Goodger (Google)
9 years ago (2011-12-07 17:17:34 UTC) #15
lgtm

http://codereview.chromium.org/8549008/diff/32002/chrome/browser/ui/window_si...
File chrome/browser/ui/window_sizer.h (right):

http://codereview.chromium.org/8549008/diff/32002/chrome/browser/ui/window_si...
chrome/browser/ui/window_sizer.h:48: // WindowSizer owns |state_provider| and
|monitor_info_provider|.
Also add this comment for the first function:

WindowSizer will create a default MonitorInfoProvider using the physical screen.

And for the second:

WindowSizer will use the supplied monitor info provider. Used for testing.

Powered by Google App Engine
This is Rietveld 408576698