Merge lp:~robertcarr/bamf/webapps into lp:bamf/0.4
| Status: | Merged |
|---|---|
| Approved by: | Robert Carr on 2012-08-22 |
| Approved revision: | 500 |
| Merged at revision: | 481 |
| Proposed branch: | lp:~robertcarr/bamf/webapps |
| Merge into: | lp:bamf/0.4 |
| Diff against target: | 0 lines |
| To merge this branch: | bzr merge lp:~robertcarr/bamf/webapps |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | Approve on 2012-08-21 | ||
| Jason Smith (community) | 2012-08-20 | Approve on 2012-08-21 | |
|
Review via email:
|
|||
Commit Message
Add webapps support
Description of the Change
Comments that I removed were fully integrated
>> 1308 +void
>> 1309 +bamf_applicati
>> An enum for types would be better than using a string value.
What is the preferred way to keep the enum in sync over DBus?
>> 1584 +BamfView *
>> 1585 +bamf_applicati
>> get_focused_child would be a better name imho
This method is perhaps a little confusing. It is not to return the focused child though, but the child which should be focused if this application is to be activated. It's used because only the webapps-
>> Instead of this, it would be probably better to add another method to the class that can be implemented by each BamfApplication implementation.
>> Otherwise... Another possibility would be to define a timeout on bamf_view that defines the amount of time after that a view is considered closed.
I like the class method. Done
>> 1689 +
>> 1690 + bamf_unity_
I am initializing it and tracking it in bamf-matcher now.
>> This looks over complicated... also instead of checking for == TRUE/FALSE I'd prefer to just check running/!running
>> Also, isn't enough not to set the running state?
?
>> How much would cost at this point to rename BAMF_TAB to BAMF_BROWSER_TAB?
Can we do this later?
>> Also, the library is not currently testable in an easy way, but the daemon is (and all the types it handles) so I think we need tests for them.
-.- We have some coverage by the webapps autopilot tests? Is this enough for now?
| Robert Carr (robertcarr) wrote : | # |
The general intent of the branch is to add support for the Unity Webapps System in BAMF.
In the Webapps system there is a concept of a "Context" which is a running webapp identified by (name, domain) and each context may have "Interests" which represent a specific view of the application (i.e. browser tab)
In this branch they are mapped in Bamf to BamfUnityWebapp
Interaction with the matcher is done through the BamfUnityWebapp
| Jason Smith (jassmith) wrote : | # |
I have gone over the review again. As for some of the comments made in the original merge prop, no new code should be added to this. It is already to big. So do the renaming in another merge later.
+1
| Unity Merger (unity-merger) wrote : | # |
No commit message specified.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Thanks for your fixes, they all looks fine to me.
>> 1308 +void
>> 1309 +bamf_applicati
>> An enum for types would be better than using a string value.
> What is the preferred way to keep the enum in sync over DBus?
Well, probably not on DBUs, but on the daemon side it would be better a more type-safe and defined value than just a string.
>> get_focused_child would be a better name imho
> This method is perhaps a little confusing. It is not to return the focused child though,
Mh, so maybe getting a proper name could be better :)
I know it's annoying... But I still see some tabs around in the code. It would be nice to get these removed before merging.
>> This looks over complicated... also instead of checking for == TRUE/FALSE I'd prefer to just check running/!running
>> Also, isn't enough not to set the running state?
> ?
I meant about this, sorry:
1454 + if (!((close_
1455 + bamf_view_
1456 + if ((running == TRUE) || close_when_empty)
1457 + bamf_view_
The first check for example could be just (!(!close_
Also the bamf_view_
>> Also, the library is not currently testable in an easy way, but the daemon is (and all the types it handles) so I think we need tests for them.
> -.- We have some coverage by the webapps autopilot tests? Is this enough for now?
Well, AP could look too "far" from the actual implementation and it would be nice to get some new features tested here as well, however I can go with this, but the last word is up to the distro, btw.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Sebastien Bacher (seb128) wrote : | # |
the merger failed on a "No package 'libunity_
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
- 500. By Robert Carr on 2012-08-22
-
Don't unref the UnityWebappsService if we never create it

Testing confirms this is working. The size of the code review however makes doing a complete code review rather difficult. I have looked over the source and it generally looks sane but would like Robert to state a summary of the changes made by this branch as he sees them. Getting a feel for the general ideas and intent would help greatly.