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

Issue 7862020: chromeos: Add operations to monitor the screen orientation. (Closed)

Created:
9 years, 3 months ago by cwolfe
Modified:
9 years, 3 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, stevenjb
Visibility:
Public.

Description

chromeos: Add operations to monitor the screen orientation. This is intended to help test <http://codereview.chromium.org/7273073/>;. These orientation-only functions will later be replaced with a generalized sensors API (after appropriate design review). Getting this pipeline working helps root out bugs and issues in the interim. BUG=None TEST=Inject orientation changes via dbus API. With <http://codereview.chromium.org/7845029/>;, inject changes using dbus-send: dbus-send --system / org.chromium.Sensors.ScreenOrientationChanged int32:1 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101387

Patch Set 1 #

Patch Set 2 : Defer dbus::Bus creation and propagate --enable-orientation to guest. #

Patch Set 3 : Juggle some code to content and general cleanup. #

Total comments: 20

Patch Set 4 : Cleanups and comments #

Total comments: 10

Patch Set 5 : Various cleanups #

Total comments: 1

Patch Set 6 : Switch to --enable-sensors, using FILE thread, proof-reading. #

Patch Set 7 : Move sensors source to chrome/browser/chromeos and update DEPS. #

Total comments: 2

Patch Set 8 : Local func into anon namespace #

Patch Set 9 : Rebase; should be a no-op #

Patch Set 10 : Rebased with fixed line endings in DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -11 lines) Patch
M chrome/browser/chromeos/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/chromeos/sensors_source_chromeos.h View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/sensors_source_chromeos.cc View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/ui/touch/frame/touch_browser_frame_view.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
cwolfe
Has known bugs and debug code. Not for submission yet. Just putting this up now ...
9 years, 3 months ago (2011-09-10 19:37:13 UTC) #1
cwolfe
Getting there. The dbus problem is that BrowserThread::IO is not yet valid, so the message ...
9 years, 3 months ago (2011-09-12 14:40:41 UTC) #2
cwolfe
The orientation handler now works in my local tests, so it's PTAL time. +sky: Sorry ...
9 years, 3 months ago (2011-09-12 19:23:34 UTC) #3
satorux1
Looks good in general. Minor comments only: http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc#newcode15 content/browser/sensors/sensors_source_chromeos.cc:15: static const ...
9 years, 3 months ago (2011-09-12 19:46:38 UTC) #4
tfarina
http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc#newcode15 content/browser/sensors/sensors_source_chromeos.cc:15: static const char kSensorsServiceName[] = "org.chromium.Sensors"; static is not ...
9 years, 3 months ago (2011-09-12 20:07:12 UTC) #5
cwolfe
http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc#newcode15 content/browser/sensors/sensors_source_chromeos.cc:15: static const char kSensorsServiceName[] = "org.chromium.Sensors"; On 2011/09/12 19:46:38, ...
9 years, 3 months ago (2011-09-12 21:17:36 UTC) #6
sky
http://codereview.chromium.org/7862020/diff/2002/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/2002/content/browser/sensors/sensors_source_chromeos.cc#newcode38 content/browser/sensors/sensors_source_chromeos.cc:38: return true; This always returns true. Is there any ...
9 years, 3 months ago (2011-09-12 21:21:18 UTC) #7
cwolfe
http://codereview.chromium.org/7862020/diff/11001/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/11001/content/browser/sensors/sensors_source_chromeos.cc#newcode14 content/browser/sensors/sensors_source_chromeos.cc:14: Bah, wasn't thinking. The chromeos browser main is already ...
9 years, 3 months ago (2011-09-12 21:22:32 UTC) #8
satorux1
http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc File content/browser/sensors/sensors_source_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/5001/content/browser/sensors/sensors_source_chromeos.cc#newcode16 content/browser/sensors/sensors_source_chromeos.cc:16: static const char kSensorsPath[] = "/"; On 2011/09/12 19:46:38, ...
9 years, 3 months ago (2011-09-12 21:55:14 UTC) #9
cwolfe
Sorry if I clobbered anyone's comments. Had a few utterly broken patch-sets that I rolled ...
9 years, 3 months ago (2011-09-12 22:15:55 UTC) #10
cwolfe
Local testing hit a thread restriction error (doing IO on non-IO thread). Assume it's my ...
9 years, 3 months ago (2011-09-13 17:34:45 UTC) #11
satorux1
Where did you hit the error? I think it's a DCHECK failure, and the log ...
9 years, 3 months ago (2011-09-13 17:40:16 UTC) #12
cwolfe
jam: Realize you were the content OWNER I drafted for the initial sensors patch. This ...
9 years, 3 months ago (2011-09-13 20:59:35 UTC) #13
jam
any reason that the chromeos file needs to be in content? we've avoided putting chromeos ...
9 years, 3 months ago (2011-09-13 21:37:52 UTC) #14
cwolfe
No problem moving sensors_source_chromeos.* back to chrome/browser/chromeos. Moved initially to avoid changing the DEPS. Needs ...
9 years, 3 months ago (2011-09-14 13:42:28 UTC) #15
satorux1
On 2011/09/14 13:42:28, cwolfe wrote: > No problem moving sensors_source_chromeos.* back to chrome/browser/chromeos. > Moved ...
9 years, 3 months ago (2011-09-14 17:27:53 UTC) #16
cwolfe
On 2011/09/14 17:27:53, satorux1 wrote: > On 2011/09/14 13:42:28, cwolfe wrote: > > No problem ...
9 years, 3 months ago (2011-09-14 17:52:07 UTC) #17
cwolfe
On 2011/09/14 17:52:07, cwolfe wrote: > On 2011/09/14 17:27:53, satorux1 wrote: > > On 2011/09/14 ...
9 years, 3 months ago (2011-09-14 19:52:12 UTC) #18
satorux1
LGTM http://codereview.chromium.org/7862020/diff/22001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): http://codereview.chromium.org/7862020/diff/22001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode100 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:100: } I think file-local functions are usually place ...
9 years, 3 months ago (2011-09-14 20:21:07 UTC) #19
cwolfe
Moved and compile-tested. derat wanted to pass (e-mail), so over to jam. http://codereview.chromium.org/7862020/diff/22001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc ...
9 years, 3 months ago (2011-09-14 20:41:24 UTC) #20
jam
sorry for the delay, I didn't know you were still waiting for me. Since this ...
9 years, 3 months ago (2011-09-15 17:58:41 UTC) #21
cwolfe
jam: No problem, and thanks.
9 years, 3 months ago (2011-09-15 18:01:18 UTC) #22
commit-bot: I haz the power
Can't apply patch for file chrome/browser/chromeos/DEPS. While running patch -p1 --forward --force; patching file chrome/browser/chromeos/DEPS ...
9 years, 3 months ago (2011-09-15 18:01:47 UTC) #23
cwolfe
Nothing suspicious in the rebase; going ahead to CQ. On 2011/09/15 18:01:47, I haz the ...
9 years, 3 months ago (2011-09-15 18:10:46 UTC) #24
commit-bot: I haz the power
Can't apply patch for file chrome/browser/chromeos/DEPS. While running patch -p1 --forward --force; patching file chrome/browser/chromeos/DEPS ...
9 years, 3 months ago (2011-09-15 18:11:14 UTC) #25
commit-bot: I haz the power
9 years, 3 months ago (2011-09-15 21:54:15 UTC) #26
Change committed as 101387

Powered by Google App Engine
This is Rietveld 408576698