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

Issue 398263002: Gallery: Random fixes for the Viewport class. (Closed)

Created:
6 years, 5 months ago by hirono
Modified:
6 years, 5 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Gallery: Random fixes for the Viewport class. The CL do: * Remove the device rect argument from paintDeviceRect because the rectangle can be calculated from other arguments. * Remove setByFrame(AndFit) helper functions that are used only once each to simplify the Viewport class. * Rename getScreenClipped with getImageBoundsOnScreenClipped. The old name sounds it retuns the bounds of screen. * Add getImageElementBounds to obtain the bounds before applying zoom and offset. BUG=245926 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283719

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -146 lines) Patch
M ui/file_manager/gallery/js/image_editor/commands.js View 2 chunks +1 line, -4 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_editor.js View 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_transform.js View 4 chunks +6 lines, -7 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_util.js View 1 1 chunk +22 lines, -0 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_view.js View 1 3 chunks +29 lines, -23 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/viewport.js View 16 chunks +110 lines, -106 lines 0 comments Download
M ui/file_manager/gallery/js/slide_mode.js View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
hirono
* Remove the device rect argument from paintDeviceRect because the rectangle can be calculated from ...
6 years, 5 months ago (2014-07-17 05:26:16 UTC) #1
hirono
PTAL the CL? Thank you!
6 years, 5 months ago (2014-07-17 05:30:56 UTC) #2
mtomasz
https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode148 ui/file_manager/gallery/js/image_editor/image_util.js:148: return this.left + this.width; I think it should be: ...
6 years, 5 months ago (2014-07-17 05:43:21 UTC) #3
hirono
https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode148 ui/file_manager/gallery/js/image_editor/image_util.js:148: return this.left + this.width; On 2014/07/17 05:43:20, mtomasz wrote: ...
6 years, 5 months ago (2014-07-17 05:56:47 UTC) #4
mtomasz
lgtm with nits https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode144 ui/file_manager/gallery/js/image_editor/image_util.js:144: * Obtains the x coordinate number ...
6 years, 5 months ago (2014-07-17 06:08:57 UTC) #5
hirono
Thank you! https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/398263002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode144 ui/file_manager/gallery/js/image_editor/image_util.js:144: * Obtains the x coordinate number of ...
6 years, 5 months ago (2014-07-17 06:26:54 UTC) #6
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 5 months ago (2014-07-17 06:27:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/398263002/20001
6 years, 5 months ago (2014-07-17 06:28:39 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 08:57:17 UTC) #9
Message was sent while issue was closed.
Change committed as 283719

Powered by Google App Engine
This is Rietveld 408576698