|
|
Add desktop vs. ash context to ui_controls
Currently, ui_controls methods are global. This patch pulls the methods into a UIControls object that is implemented and installed at startup for the target platform. This is to allow dispatch to either desktop or ash implementations on Windows.
ui_controls.cc still contains global (now deprecated) implementations of the methods that forward to the native implementation. So, everything is still wrong on desktop+ash on Windows, but it makes this patch a lot smaller and shouldn't change behavior on any platform. I'll do a follow up CL to change all the callsites to retrieve the correct UIControls object which will make desktop+ash work properly.
BUG= 128578
Total comments: 22
Total comments: 10
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+711 lines, -504 lines) |
Patch |
 |
M |
ash/shell.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+4 lines, -2 lines |
1 comment
|
Download
|
 |
M |
ash/shell_factory.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/ui_controls_ash.cc
|
View
|
1
|
9 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ash/wm/window_properties.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/wm/window_properties.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/DEPS
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/shell_aura.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/aura/desktop_ui_controls.h
|
View
|
1
2
3
4
5
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/test/aura_test_helper.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
D |
ui/aura/ui_controls_aura.h
|
View
|
1
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
ui/aura/ui_controls_win.cc
|
View
|
1
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/aura/ui_controls_x11.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/ui.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls.h
|
View
|
1
2
3
4
5
|
4 chunks |
+101 lines, -21 lines |
0 comments
|
Download
|
 |
A |
ui/ui_controls/ui_controls.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+116 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls_aura.h
|
View
|
1
|
1 chunk |
+0 lines, -58 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls_aura.cc
|
View
|
1
|
1 chunk |
+4 lines, -71 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls_gtk.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+153 lines, -134 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls_mac.mm
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+141 lines, -123 lines |
0 comments
|
Download
|
 |
A |
ui/ui_controls/ui_controls_type_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/ui_controls/ui_controls_win.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+58 lines, -39 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/content_client/examples_browser_main_parts.cc
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|