|
App Indicator implementation
App Indicator has been implemented as part of libgtk2ui (since app indicators
use gtk). A StatusIconLinux interface has been created alongside linux_ui
interface since we don't want gtk2ui library to depend on the "browser" target
(where status_icon.h is). This interface will be used by implementions of
linux_ui (e.g. libgtk2ui) to support status icons. AppIndicatorIcon is such an
implementation (part of libgtk2ui) which enables app indicator support.
App indicators require us to pass in a GtkMenu (they will not be shown without
a menu) and so some "tools" have been added to create a GtkMenu from a menu
model (similar to GtkMenu implementation).
App indicators do not support setting the icon from a pixbuf and so we have to
create a temporary icon file and pass in the icon directory to libappindicator.
Note: This does not support updating the app indicator menus automatically
when the menu-model is changed externally (i.e. if the change is not due to a
menu item click).
BUG= 258651
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212476
Total comments: 13
Total comments: 14
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1242 lines, -69 lines) |
Patch |
 |
M |
chrome/browser/status_icons/status_icon.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/status_icons/status_icon.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/libgtk2ui/app_indicator_icon.h
|
View
|
1
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/libgtk2ui/app_indicator_icon.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+383 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/gtk2_ui.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/gtk2_ui.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/gtk2_util.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+68 lines, -57 lines |
3 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/libgtk2ui.gyp
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/libgtk2ui/menu_util.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/libgtk2ui/menu_util.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+260 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+105 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/ui/views/status_icons/status_tray_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/status_icons/status_tray_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+25 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/linux_ui/linux_ui.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/linux_ui/linux_ui.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/linux_ui/status_icon_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/linux_ui/status_icon_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|