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

Issue 309483009: Remaining bits to get views_examples_with_content_exe to work on Mac (Closed)

Created:
6 years, 6 months ago by tapted
Modified:
6 years, 5 months ago
Reviewers:
Robert Sesek, sky
CC:
chromium-reviews, ben+aura_chromium.org, sievers+watch_chromium.org, rsesek+watch_chromium.org, dmazzoni+watch_chromium.org, sadrul, tdanderson+views_chromium.org, aboxhall+watch_chromium.org, jam, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, tdresser+watch_chromium.org, yuzo+watch_chromium.org, piman+watch_chromium.org, ben+views_chromium.org, danakj+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, plundblad+watch_chromium.org, Ian Vollick, tfarina, dtseng+watch_chromium.org, cc-bugs_chromium.org, Andre, mac-views-reviews_chromium.org
Visibility:
Public.

Description

Remaining bits to get views_examples_with_content_exe to work on Mac The example window currently doesn't activate itself properly because it lacks an activation policy and a menubar. This CL sets the activation policy, adds a menubar and defers window creation until the applicationDidFinishLoading notification. Creating a window before this can activate and receive key events, but the menubar will not switch properly. With this, views_examples_with_content_exe compiles and runs nicely on a Mac build with `GYP_DEFINES=toolkit-views=1`. Note the `WebView` example will crash for now because views::NativeViewHost is not yet implemented for mac. BUG=395507 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284883

Patch Set 1 #

Patch Set 2 : Big trim #

Patch Set 3 : more non-critical stuff trimmed #

Patch Set 4 : neater still #

Total comments: 4

Patch Set 5 : Updated to handle key events #

Patch Set 6 : rebase to master@r275900 #

Total comments: 10

Patch Set 7 : rebase onto crrev/309483009. Still needs polish. #

Patch Set 8 : rebased. Trimmed. #

Patch Set 9 : Fix activation #

Patch Set 10 : rebase to master! #

Total comments: 8

Patch Set 11 : respond to commments #

Patch Set 12 : fix stray space #

Patch Set 13 : Quit literal + TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -2 lines) Patch
M ui/views_content_client/views_content_client_main_parts_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +65 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Andre
https://codereview.chromium.org/309483009/diff/70001/ui/gfx/mac/point_utils.mm File ui/gfx/mac/point_utils.mm (right): https://codereview.chromium.org/309483009/diff/70001/ui/gfx/mac/point_utils.mm#newcode17 ui/gfx/mac/point_utils.mm:17: return NSMaxY([[[NSScreen screens] objectAtIndex:0] frame]); How about multiple screens? ...
6 years, 6 months ago (2014-06-04 23:55:08 UTC) #1
tapted
Thanks for taking a look. This now has some polish and unit tests in https://codereview.chromium.org/329743002/ ...
6 years, 6 months ago (2014-06-11 07:38:00 UTC) #2
Robert Sesek
https://codereview.chromium.org/309483009/diff/100001/ui/gfx/mac/point_utils.h File ui/gfx/mac/point_utils.h (right): https://codereview.chromium.org/309483009/diff/100001/ui/gfx/mac/point_utils.h#newcode18 ui/gfx/mac/point_utils.h:18: GFX_EXPORT NSPoint ScreenPointToNSPoint(const gfx::Point& point); Document each of these. ...
6 years, 6 months ago (2014-06-11 14:53:48 UTC) #3
tapted
Thanks for the review! I've incorporated some stuff into https://codereview.chromium.org/329743002/ and rebased this upon that ...
6 years, 6 months ago (2014-06-12 09:09:38 UTC) #4
tapted
Hi Robert PTAL. This is now ready (the extra widget stuff it needed has now ...
6 years, 5 months ago (2014-07-21 05:35:55 UTC) #5
Robert Sesek
https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm File ui/views_content_client/views_content_client_main_parts_mac.mm (right): https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm#newcode17 ui/views_content_client/views_content_client_main_parts_mac.mm:17: @interface ContentClientAppController : NSObject<NSApplicationDelegate> { naming: ViewContentClientAppController, to distinguish ...
6 years, 5 months ago (2014-07-21 17:53:55 UTC) #6
tapted
https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm File ui/views_content_client/views_content_client_main_parts_mac.mm (right): https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm#newcode17 ui/views_content_client/views_content_client_main_parts_mac.mm:17: @interface ContentClientAppController : NSObject<NSApplicationDelegate> { On 2014/07/21 17:53:54, rsesek ...
6 years, 5 months ago (2014-07-22 00:06:52 UTC) #7
Robert Sesek
LGTM https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm File ui/views_content_client/views_content_client_main_parts_mac.mm (right): https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm#newcode107 ui/views_content_client/views_content_client_main_parts_mac.mm:107: // TODO(tapted): Localize "Quit" if this is ever ...
6 years, 5 months ago (2014-07-22 00:39:13 UTC) #8
tapted
+sky for OWNERS in src/ui https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm File ui/views_content_client/views_content_client_main_parts_mac.mm (right): https://codereview.chromium.org/309483009/diff/320001/ui/views_content_client/views_content_client_main_parts_mac.mm#newcode107 ui/views_content_client/views_content_client_main_parts_mac.mm:107: // TODO(tapted): Localize "Quit" ...
6 years, 5 months ago (2014-07-22 01:23:49 UTC) #9
sky
LGTM
6 years, 5 months ago (2014-07-22 16:38:28 UTC) #10
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 5 months ago (2014-07-23 03:04:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/309483009/380001
6 years, 5 months ago (2014-07-23 03:05:46 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 08:46:10 UTC) #13
Message was sent while issue was closed.
Change committed as 284883

Powered by Google App Engine
This is Rietveld 408576698