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

Issue 10388251: Support maximize window command. (Closed)

Created:
8 years, 7 months ago by zori
Modified:
8 years, 6 months ago
CC:
chromium-reviews, robertshield, kkania, Ben Goodger (Google)
Visibility:
Public.

Description

Support maximize window command. BUG=chromedriver:65 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142038

Patch Set 1 #

Total comments: 8

Patch Set 2 : Unit test in chromedriver_tests.py; nicer error reporting - a method to check whether the current v… #

Total comments: 6

Patch Set 3 : |BrowserWindow| (gtk and cocoa) will notify when a window is maximized. #

Total comments: 16

Patch Set 4 : "Use notification only when maximization happens asynchronously (OS Linux)." #

Total comments: 11

Patch Set 5 : "Notification and observer for the browser window maximize are only defined on Linux." #

Total comments: 4

Patch Set 6 : "Fix documentation." #

Total comments: 1

Patch Set 7 : "Since the python bindings are to a newer version now, update chromedriver_tests.py accordingly." #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -93 lines) Patch
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 5 6 44 chunks +114 lines, -58 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 2 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_json_requests.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_json_requests.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/window_commands.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/window_commands.cc View 2 chunks +28 lines, -1 line 0 comments Download
M chrome/test/webdriver/test/chromedriver_tests.py View 1 2 3 4 5 6 1 chunk +48 lines, -31 lines 0 comments Download
M chrome/test/webdriver/webdriver_automation.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_automation.cc View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_server.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_session.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/test/webdriver/webdriver_session.cc View 1 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
zori
8 years, 7 months ago (2012-05-23 17:16:41 UTC) #1
kkania
can you add a test to chromedriver_tests.py? http://codereview.chromium.org/10388251/diff/1/chrome/browser/automation/testing_automation_provider.h File chrome/browser/automation/testing_automation_provider.h (right): http://codereview.chromium.org/10388251/diff/1/chrome/browser/automation/testing_automation_provider.h#newcode1103 chrome/browser/automation/testing_automation_provider.h:1103: void MaximizeWindow(base::DictionaryValue* ...
8 years, 7 months ago (2012-05-23 17:49:20 UTC) #2
kkania
http://codereview.chromium.org/10388251/diff/1/chrome/test/webdriver/webdriver_automation.cc File chrome/test/webdriver/webdriver_automation.cc (right): http://codereview.chromium.org/10388251/diff/1/chrome/test/webdriver/webdriver_automation.cc#newcode746 chrome/test/webdriver/webdriver_automation.cc:746: automation::Error auto_error; Also, can you return a nicer error ...
8 years, 7 months ago (2012-05-23 17:58:42 UTC) #3
zori
https://chromiumcodereview.appspot.com/10388251/diff/1/chrome/browser/automation/testing_automation_provider.h File chrome/browser/automation/testing_automation_provider.h (right): https://chromiumcodereview.appspot.com/10388251/diff/1/chrome/browser/automation/testing_automation_provider.h#newcode1103 chrome/browser/automation/testing_automation_provider.h:1103: void MaximizeWindow(base::DictionaryValue* args, IPC::Message* reply_message); On 2012/05/23 17:49:20, kkania ...
8 years, 7 months ago (2012-05-24 00:39:32 UTC) #4
kkania
https://chromiumcodereview.appspot.com/10388251/diff/7001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): https://chromiumcodereview.appspot.com/10388251/diff/7001/chrome/browser/automation/testing_automation_provider.cc#newcode6521 chrome/browser/automation/testing_automation_provider.cc:6521: browser->window()->Maximize(); in thinking this over, I would prefer we ...
8 years, 7 months ago (2012-05-24 17:25:37 UTC) #5
zori
http://codereview.chromium.org/10388251/diff/7001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10388251/diff/7001/chrome/browser/automation/testing_automation_provider.cc#newcode6521 chrome/browser/automation/testing_automation_provider.cc:6521: browser->window()->Maximize(); On 2012/05/24 17:25:38, kkania wrote: > in thinking ...
8 years, 6 months ago (2012-05-29 23:53:32 UTC) #6
kkania
Also, you need to look at src/chrome/browser/ui/views/frame/browser_view.h http://codereview.chromium.org/10388251/diff/13002/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10388251/diff/13002/chrome/browser/automation/automation_provider_observers.cc#newcode3043 chrome/browser/automation/automation_provider_observers.cc:3043: no newline ...
8 years, 6 months ago (2012-05-30 01:03:58 UTC) #7
zori
http://codereview.chromium.org/10388251/diff/13002/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/10388251/diff/13002/chrome/browser/automation/automation_provider_observers.cc#newcode3043 chrome/browser/automation/automation_provider_observers.cc:3043: On 2012/05/30 01:03:58, kkania wrote: > no newline here ...
8 years, 6 months ago (2012-05-31 23:38:22 UTC) #8
kkania
http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1056 chrome/browser/ui/gtk/browser_window_gtk.cc:1056: TaskManagerGtk::Show(false); normally you don't sync a branch with a ...
8 years, 6 months ago (2012-06-01 04:14:03 UTC) #9
Ben Goodger (Google)
http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1606 chrome/browser/ui/gtk/browser_window_gtk.cc:1606: if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) { is this already supported ...
8 years, 6 months ago (2012-06-01 17:10:11 UTC) #10
zori
http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/10388251/diff/17002/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1606 chrome/browser/ui/gtk/browser_window_gtk.cc:1606: if (event->changed_mask & GDK_WINDOW_STATE_MAXIMIZED) { On 2012/06/01 17:10:11, Ben ...
8 years, 6 months ago (2012-06-02 01:20:54 UTC) #11
kkania
LGTM, but wait for Ben's ok. http://codereview.chromium.org/10388251/diff/29002/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10388251/diff/29002/chrome/common/chrome_notification_types.h#newcode58 chrome/common/chrome_notification_types.h:58: // On Linux ...
8 years, 6 months ago (2012-06-04 17:47:48 UTC) #12
zori
http://codereview.chromium.org/10388251/diff/29002/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10388251/diff/29002/chrome/common/chrome_notification_types.h#newcode58 chrome/common/chrome_notification_types.h:58: // On Linux maximize can be asynchronous operation. This ...
8 years, 6 months ago (2012-06-05 02:45:00 UTC) #13
Ben Goodger (Google)
http://codereview.chromium.org/10388251/diff/37002/chrome/browser/ui/gtk/browser_window_gtk.cc File chrome/browser/ui/gtk/browser_window_gtk.cc (right): http://codereview.chromium.org/10388251/diff/37002/chrome/browser/ui/gtk/browser_window_gtk.cc#newcode1607 chrome/browser/ui/gtk/browser_window_gtk.cc:1607: content::NotificationService::current()->Notify( is this notification sent on other platforms already?
8 years, 6 months ago (2012-06-12 17:42:26 UTC) #14
zori
No, it is not needed on other platforms. They execute the maximize operation synchronously and ...
8 years, 6 months ago (2012-06-12 18:06:13 UTC) #15
Ben Goodger (Google)
On Tue, Jun 12, 2012 at 11:06 AM, <zori@chromium.org> wrote: > No, it is not ...
8 years, 6 months ago (2012-06-13 16:24:38 UTC) #16
zori
On 2012/06/13 16:24:38, Ben Goodger (Google) wrote: > On Tue, Jun 12, 2012 at 11:06 ...
8 years, 6 months ago (2012-06-13 20:10:35 UTC) #17
Ben Goodger (Google)
LGTM On Wed, Jun 13, 2012 at 1:10 PM, <zori@chromium.org> wrote: > On 2012/06/13 16:24:38, ...
8 years, 6 months ago (2012-06-13 20:14:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zori@chromium.org/10388251/37002
8 years, 6 months ago (2012-06-13 20:17:59 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/browser/automation/automation_provider_observers.h: While running patch -p1 --forward --force; patching file chrome/browser/automation/automation_provider_observers.h ...
8 years, 6 months ago (2012-06-13 20:18:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zori@chromium.org/10388251/52001
8 years, 6 months ago (2012-06-13 23:07:33 UTC) #21
commit-bot: I haz the power
8 years, 6 months ago (2012-06-14 00:31:33 UTC) #22
Change committed as 142038

Powered by Google App Engine
This is Rietveld 408576698