Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u
:
up to issue
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
Issue
u
:
up to list of issues
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr)
|
Please choose your nickname with
Settings
|
Help
|
Chromium Project
|
Gerrit Changes
|
Sign out
(490)
Issues
Search
My Issues
|
Starred
Open
|
Closed
|
All
Side by Side Diff: remoting/android/javatests/src/org/chromium/chromoting/Pointer.java
Issue
1999583002
:
Add Event and EventTest (Closed)
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use only a Set instead of a Set and a List
Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Tab Spaces:
Jump to:
remoting/android/BUILD.gn
remoting/android/client_java_tmpl.gni
remoting/android/java/src/org/chromium/chromoting/Event.java
remoting/android/java/src/org/chromium/chromoting/Preconditions.java
remoting/android/javatests/src/org/chromium/chromoting/Counter.java
remoting/android/javatests/src/org/chromium/chromoting/EventTest.java
remoting/android/javatests/src/org/chromium/chromoting/Pointer.java
View unified diff
|
Download patch
« remoting/android/java/src/org/chromium/chromoting/Preconditions.java
('K') |
« remoting/android/javatests/src/org/chromium/chromoting/EventTest.java
('k') |
no next file »
|
no next file with comments »
Toggle Intra-line Diffs
('i') |
Expand Comments
('e') |
Collapse Comments
('c') |
Show Comments
Hide Comments
('s')
OLD
NEW
(Empty)
1
// Copyright 2016 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
package org.chromium.chromoting;
6
7
/**
8
* A container of a reference to pass data into or out from a closure. This clas s is usually useful
9
* in test cases.
10
*
11
* @param <T> The type of reference.
12
*/
13
public class Pointer<T> {
14
private T mRef;
15
16
public Pointer() {
17
clear();
18
}
19
20
public Pointer(T ref) {
21
set(ref);
22
}
23
24
public void clear() {
25
set(null);
26
}
27
28
public void set(T ref) {
29
mRef = ref;
30
}
31
32
public T get() {
33
return mRef;
34
}
35
}
OLD
NEW
« remoting/android/java/src/org/chromium/chromoting/Preconditions.java
('K') |
« remoting/android/javatests/src/org/chromium/chromoting/EventTest.java
('k') |
no next file »
|
no next file with comments »
Issue 1999583002: Add Event and EventTest (Closed)
Created 4 years, 7 months ago by Hzj_jie
Modified 4 years, 6 months ago
Reviewers: Lambros, joedow
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 76
This is Rietveld
408576698