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

Issue 13461029: The continue window is owned by the desktop environment now. (Closed)

Created:
7 years, 8 months ago by alexeypa (please no reviews)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

The continue window is owned by the desktop environment now. This CL completely removes HostUserInterface and It2MeHostUserInterface classes, making the desktop enviroment (It2MeDesktopEnvironment) responsible for creation of the UI. Platform-specific implementations of ContinueWindow have been rewritten on top of HostWindow class. Collateral changes: - HostScriptObject creates a instance of base::ThreadTaskRunnerHandle so that timers could run on the plugin thread. - No more "uninteresting mock" messages caused by the continue and disconnect windows when running remoting_unittests. BUG=104544 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196226

Patch Set 1 #

Total comments: 14

Patch Set 2 : CR feedback. #

Patch Set 3 : ThreadTasKRunnerHandle fix. #

Patch Set 4 : Fix Mac. #

Total comments: 2

Patch Set 5 : Avoid changing ThreadTaskRunnerHandle::Get() #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -729 lines) Patch
M base/thread_task_runner_handle.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M base/thread_task_runner_handle.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/host/basic_desktop_environment.h View 1 2 3 4 5 4 chunks +3 lines, -21 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 2 3 4 5 3 chunks +6 lines, -48 lines 0 comments Download
M remoting/host/chromoting_host.h View 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 1 2 3 4 5 8 chunks +0 lines, -58 lines 0 comments Download
M remoting/host/continue_window.h View 1 1 chunk +42 lines, -16 lines 0 comments Download
A remoting/host/continue_window.cc View 1 1 chunk +80 lines, -0 lines 0 comments Download
M remoting/host/continue_window_gtk.cc View 1 3 chunks +51 lines, -38 lines 0 comments Download
M remoting/host/continue_window_mac.mm View 1 2 3 5 chunks +30 lines, -29 lines 0 comments Download
M remoting/host/continue_window_win.cc View 1 6 chunks +55 lines, -47 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 4 5 2 chunks +0 lines, -12 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 chunk +0 lines, -8 lines 0 comments Download
D remoting/host/host_user_interface.h View 1 chunk +0 lines, -103 lines 0 comments Download
D remoting/host/host_user_interface.cc View 1 chunk +0 lines, -105 lines 0 comments Download
A remoting/host/it2me_desktop_environment.h View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
A remoting/host/it2me_desktop_environment.cc View 1 2 3 4 5 1 chunk +101 lines, -0 lines 0 comments Download
D remoting/host/it2me_host_user_interface.h View 1 chunk +0 lines, -67 lines 0 comments Download
D remoting/host/it2me_host_user_interface.cc View 1 chunk +0 lines, -121 lines 0 comments Download
M remoting/host/me2me_desktop_environment.h View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 1 2 3 4 5 3 chunks +41 lines, -7 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 4 5 8 chunks +20 lines, -22 lines 0 comments Download
M remoting/host/win/session_desktop_environment.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M remoting/host/win/session_desktop_environment.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
alexeypa (please no reviews)
PTAL.
7 years, 8 months ago (2013-04-04 20:33:24 UTC) #1
Sergey Ulanov
Thank you for refactoring this code. Looks mostly good. https://codereview.chromium.org/13461029/diff/1/remoting/host/basic_desktop_environment.h File remoting/host/basic_desktop_environment.h (right): https://codereview.chromium.org/13461029/diff/1/remoting/host/basic_desktop_environment.h#newcode123 remoting/host/basic_desktop_environment.h:123: ...
7 years, 8 months ago (2013-04-04 21:04:25 UTC) #2
alexeypa (please no reviews)
PTAL. https://chromiumcodereview.appspot.com/13461029/diff/1/remoting/host/basic_desktop_environment.h File remoting/host/basic_desktop_environment.h (right): https://chromiumcodereview.appspot.com/13461029/diff/1/remoting/host/basic_desktop_environment.h#newcode123 remoting/host/basic_desktop_environment.h:123: const UiStrings ui_strings_; On 2013/04/04 21:04:26, sergeyu wrote: ...
7 years, 8 months ago (2013-04-06 18:07:56 UTC) #3
Sergey Ulanov
lgtm https://chromiumcodereview.appspot.com/13461029/diff/14001/remoting/host/plugin/host_script_object.cc File remoting/host/plugin/host_script_object.cc (right): https://chromiumcodereview.appspot.com/13461029/diff/14001/remoting/host/plugin/host_script_object.cc#newcode670 remoting/host/plugin/host_script_object.cc:670: if (!base::ThreadTaskRunnerHandle::Get()) { This is a hack. Main ...
7 years, 8 months ago (2013-04-08 23:56:13 UTC) #4
Wez
https://chromiumcodereview.appspot.com/13461029/diff/14001/remoting/host/plugin/host_script_object.cc File remoting/host/plugin/host_script_object.cc (right): https://chromiumcodereview.appspot.com/13461029/diff/14001/remoting/host/plugin/host_script_object.cc#newcode666 remoting/host/plugin/host_script_object.cc:666: // When using a componnet build, the plugin can ...
7 years, 8 months ago (2013-04-09 00:58:11 UTC) #5
alexeypa (please no reviews)
+darin@ Could you please take a look at base/thread_task_runner_handle.cc? This is a hack to allow ...
7 years, 8 months ago (2013-04-09 17:40:11 UTC) #6
alexeypa (please no reviews)
On 2013/04/09 17:40:11, alexeypa wrote: > +darin@ > > Could you please take a look ...
7 years, 8 months ago (2013-04-10 22:08:28 UTC) #7
darin (slow to review)
On 2013/04/10 22:08:28, alexeypa wrote: > On 2013/04/09 17:40:11, alexeypa wrote: > > +darin@ > ...
7 years, 8 months ago (2013-04-10 23:29:24 UTC) #8
alexeypa (please no reviews)
On 2013/04/10 23:29:24, darin wrote: > Sorry for the slow response. That sure does seem ...
7 years, 8 months ago (2013-04-11 17:13:39 UTC) #9
darin (slow to review)
On 2013/04/11 17:13:39, alexeypa wrote: > On 2013/04/10 23:29:24, darin wrote: > > Sorry for ...
7 years, 8 months ago (2013-04-11 18:40:50 UTC) #10
alexeypa (please no reviews)
On 2013/04/11 18:40:50, darin wrote: > Fixing the scripts to package up a base.dll with ...
7 years, 8 months ago (2013-04-11 23:19:53 UTC) #11
alexeypa (please no reviews)
> The way it was "solved" was to grab all > DLLs in out/Debug and ...
7 years, 8 months ago (2013-04-11 23:21:10 UTC) #12
alexeypa (please no reviews)
I slightly reworked the patch to emphasize that semantics of ThreadTaskRunnerHandle::Get() does not change at ...
7 years, 8 months ago (2013-04-12 15:46:58 UTC) #13
alexeypa (please no reviews)
Darin, ping?
7 years, 8 months ago (2013-04-15 20:10:53 UTC) #14
alexeypa (please no reviews)
On 2013/04/15 20:10:53, alexeypa wrote: > Darin, ping? ping^2. :-)
7 years, 8 months ago (2013-04-16 22:15:24 UTC) #15
alexeypa (please no reviews)
+willchan@ Could you please take a look at base/* changes and at our discussion with ...
7 years, 8 months ago (2013-04-17 20:39:33 UTC) #16
darin (slow to review)
Sorry for the review latency. Please send direct email in the future to get a ...
7 years, 8 months ago (2013-04-17 20:59:55 UTC) #17
alexeypa (please no reviews)
On 2013/04/17 20:59:55, darin wrote: > Sorry for the review latency. Please send direct email ...
7 years, 8 months ago (2013-04-17 21:12:49 UTC) #18
darin (slow to review)
On Wed, Apr 17, 2013 at 2:12 PM, <alexeypa@chromium.org> wrote: > On 2013/04/17 20:59:55, darin ...
7 years, 8 months ago (2013-04-17 21:43:13 UTC) #19
alexeypa (please no reviews)
> > The preprocessor define will not work when Chrome is built statically, but > ...
7 years, 8 months ago (2013-04-17 22:20:03 UTC) #20
alexeypa (please no reviews)
> > The preprocessor define will not work when Chrome is built statically, but > ...
7 years, 8 months ago (2013-04-17 22:20:03 UTC) #21
alexeypa (please no reviews)
Darin, ping?
7 years, 8 months ago (2013-04-22 21:28:52 UTC) #22
darin (slow to review)
alexeypa and I discussed this change over a hangout, and LGTM.
7 years, 8 months ago (2013-04-23 21:18:01 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/13461029/38001
7 years, 8 months ago (2013-04-24 18:51:15 UTC) #24
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 20:44:46 UTC) #25
Message was sent while issue was closed.
Change committed as 196226

Powered by Google App Engine
This is Rietveld 408576698