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

Issue 3538012: Use BubbleWindow for ChromeOS windows/dialogs. (Closed)

Created:
10 years, 2 months ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
tfarina, zel
CC:
chromium-reviews, nkostylev+cc_chromium.org, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Use BubbleWindow for ChromeOS windows/dialogs. BUG=chromium-os:7216 TEST=Verify all windows/dialogs use new bubble design, e.g. JS dialog, page info window, certificate view, extension install confirmation, save as dialog etc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61885

Patch Set 1 #

Total comments: 2

Patch Set 2 : use a browser::CreateWindow to wire different window frame per zel #

Total comments: 7

Patch Set 3 : fix win trybot and address tfarina's comments #

Patch Set 4 : address tfarina's comments #2 #

Patch Set 5 : fix comments date, sync and try #

Patch Set 6 : fix win trybot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -40 lines) Patch
M chrome/browser/chromeos/external_protocol_dialog.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/eula_view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/native_dialog_window.cc View 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/network_message_observer.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/internet_page_view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/language_config_view.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/options/options_window_view.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 4 6 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/views/about_chrome_view.cc View 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/extensions/extension_install_prompt2.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/views/html_dialog_view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/js_modal_dialog_views.cc View 2 3 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/views/modal_dialog_delegate.cc View 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/views/page_info_window_view.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/views/window.h View 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/views/window.cc View 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
xiyuan
10 years, 2 months ago (2010-10-06 17:58:43 UTC) #1
zel
http://codereview.chromium.org/3538012/diff/1/11 File chrome/browser/views/frame/browser_view.cc (right): http://codereview.chromium.org/3538012/diff/1/11#newcode1174 chrome/browser/views/frame/browser_view.cc:1174: views::Window::CreateChromeWindow(GetNativeHandle(), gfx::Rect(), couldn't we change this factory method to ...
10 years, 2 months ago (2010-10-06 18:08:01 UTC) #2
xiyuan
http://codereview.chromium.org/3538012/diff/1/11 File chrome/browser/views/frame/browser_view.cc (right): http://codereview.chromium.org/3538012/diff/1/11#newcode1174 chrome/browser/views/frame/browser_view.cc:1174: views::Window::CreateChromeWindow(GetNativeHandle(), gfx::Rect(), On 2010/10/06 18:08:01, zel wrote: > couldn't ...
10 years, 2 months ago (2010-10-06 19:49:59 UTC) #3
zel
On 2010/10/06 19:49:59, xiyuan wrote: > http://codereview.chromium.org/3538012/diff/1/11 > File chrome/browser/views/frame/browser_view.cc (right): > > http://codereview.chromium.org/3538012/diff/1/11#newcode1174 > ...
10 years, 2 months ago (2010-10-06 19:56:22 UTC) #4
xiyuan
On 2010/10/06 19:56:22, zel wrote: > On 2010/10/06 19:49:59, xiyuan wrote: > > http://codereview.chromium.org/3538012/diff/1/11 > ...
10 years, 2 months ago (2010-10-06 19:59:44 UTC) #5
xiyuan
CL update. Added a factory function browser::CreateWindow and wire the windows/dialogs through it.
10 years, 2 months ago (2010-10-06 21:36:13 UTC) #6
zel
LGTM
10 years, 2 months ago (2010-10-06 21:43:58 UTC) #7
tfarina
http://codereview.chromium.org/3538012/diff/10001/11015 File chrome/browser/views/modal_dialog_delegate.cc (right): http://codereview.chromium.org/3538012/diff/10001/11015#newcode1 chrome/browser/views/modal_dialog_delegate.cc:1: // Copyright (c) 2006-2008 The Chromium Authors. All rights ...
10 years, 2 months ago (2010-10-06 22:08:55 UTC) #8
xiyuan
http://codereview.chromium.org/3538012/diff/10001/11015 File chrome/browser/views/modal_dialog_delegate.cc (right): http://codereview.chromium.org/3538012/diff/10001/11015#newcode1 chrome/browser/views/modal_dialog_delegate.cc:1: // Copyright (c) 2006-2008 The Chromium Authors. All rights ...
10 years, 2 months ago (2010-10-07 19:06:49 UTC) #9
tfarina
http://codereview.chromium.org/3538012/diff/10001/11018 File chrome/browser/views/window.h (right): http://codereview.chromium.org/3538012/diff/10001/11018#newcode9 chrome/browser/views/window.h:9: #include "views/window/window.h" On 2010/10/07 19:06:49, xiyuan wrote: > On ...
10 years, 2 months ago (2010-10-07 19:13:01 UTC) #10
xiyuan
10 years, 2 months ago (2010-10-07 19:32:56 UTC) #11
On 2010/10/07 19:13:01, tfarina wrote:
> http://codereview.chromium.org/3538012/diff/10001/11018
> File chrome/browser/views/window.h (right):
> 
> http://codereview.chromium.org/3538012/diff/10001/11018#newcode9
> chrome/browser/views/window.h:9: #include "views/window/window.h"
> On 2010/10/07 19:06:49, xiyuan wrote:
> > On 2010/10/06 22:08:55, tfarina wrote:
> > > Can't you forward declare for Window and WindowDelegate and Rect? And
> include
> > > gfx/native_widget_types.h for NativeWindow?
> > 
> > The code that calls CreateWindow would need to call views::Window methods
> (e.g.
> > Show). So if I don't include it here, then the caller would need to include
> the
> > that file. So which way do you prefer?
> 
> I'd prefer that the caller include the window.h. Forward declaring helps us
> speeding up the compilation.
> 
> LGTM with that.

Done.

Powered by Google App Engine
This is Rietveld 408576698