0
Commit Graph

127406 Commits

Author SHA1 Message Date
a8461d8d0e cc: Remove the temporary header files that aren't prefixed with CC*
The list of files was generated with the following command line:
$ ls *.h cc/ | grep -v CC

BUG=155413
TEST=cc_unittests
R=enne@chromium.org,jamesr@chromium.org

Review URL: https://codereview.chromium.org/11189011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162247 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:11:14 +00:00
83be7dd219 Fix accessibility issues on most visited page for android's NTP.
Do not modify the DOM of the most visited page if nothing has changed, which
is often the case as the top sites are polled periodically just to make sure
they are up to date.

Also, moves the event listener to a node with a text attribute that allows it
to be selected in accessibility mode.

Makes some markup nodes as skippable in accessibility mode by marking them as
having empty alt text.

BUG=155450


Review URL: https://chromiumcodereview.appspot.com/11155022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162246 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:08:36 +00:00
70e983cc30 Add new views::LabelButton and LabelButtonBorder.
(a simplified replacement for TextButton[Base], etc.)

Add the LabelButton class, based on TextButton.
(simplify, cleanup, re-use views controls, etc.)
Add a supporting LabelButtonBorder class.
Add unit tests and a views example in ButtonExample.
Add ImageView interactive flag for hit-testing.
Make Label::text() return a const string16 ref.

TODO(followup): Replace TextButton[Base] use, etc.
TODO(followup): Fix CanvasSkia multi-line label painting.

BUG=155363
TEST=views examples use of the new LabelButton, etc.
R=sky@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11068012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162245 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:08:22 +00:00
3116158891 cc: Remove wtf includes for scrollbar layer classes
R=jamesr@chromium.org
BUG=154451


Review URL: https://chromiumcodereview.appspot.com/11144034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162244 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:08:03 +00:00
1cec652930 Make some of the search engine configuration data from master_preferences optional.
BUG=155546


Review URL: https://chromiumcodereview.appspot.com/11170007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162243 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:03:31 +00:00
705b2ef04a Fix gcc 4.7 building problem.
Added explict type converion to initialization list.

TEST=Built using gcc-4.7
BUG=None


Review URL: https://chromiumcodereview.appspot.com/11148030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162242 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:02:24 +00:00
d44bf94900 Fix the NaCl IPC proxy untrusted side to allow calls off the main thread.
BUG=116317
TEST=none

Review URL: https://chromiumcodereview.appspot.com/11170006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162241 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 21:02:15 +00:00
93872b09aa See also:
http://code.google.com/p/chromium/issues/detail?id=134093
https://chromiumcodereview.appspot.com/10993067/

This is a better fix than 10993067. This CL undoes that change and moves the fix to the AcceleratorController. This is a more general fix which employs a table of actions that are allowed when in a modal dialog. All other actions are suppressed.

BUG=153077
TEST=System Tray -> Ehternet -> Join Other; while the modal dialog is up, try various ash shortcuts. Observe that the ones are working (like volume up) make sense, but things like new window or moving around windows are inactive.

Review URL: https://chromiumcodereview.appspot.com/10977088

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162240 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:48:00 +00:00
7a137c9dee Add API to construct new vector interchange MIME data type.
Add test for web intents host.

R=groby@chromium.org
BUG=153695


Review URL: https://chromiumcodereview.appspot.com/11026070

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162239 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:41:20 +00:00
84a9361de5 Fix check_perms error from r162212.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162238 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:41:04 +00:00
c1e7c23d53 Revert "Revert"Adding a WindowAndroidHelper class"
This reverts the revert 2ed4f50146.

My change https://chromiumcodereview.appspot.com/11098008/ got reverted
due to crash on startup of chromium_testshell.

The difference from the previous CL is that TabBaseAndroidImpl constructor
now calls InitTabHelpers() and that InitTabHelpers() is now a protected instead
of private.


Review URL: https://chromiumcodereview.appspot.com/11137004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162237 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:38:43 +00:00
ad62ab7111 Do not consume keys for DISABLE_CAPS_LOCK when caps lock is off.
DISABLE_CAPS_LOCK is invoked with Shift keyup and should not
be consumed. Otherwise the Shift keyup event is not sent to 
the renderer for tabbed web pages.

BUG=155434
TEST=Manually check Shift keyup event is generated.

Review URL: https://chromiumcodereview.appspot.com/11113004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162236 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:38:08 +00:00
10c187e99a remove VideoDeviceError and AudioDeviceError for media stream.
Per discussion with perkj@, after media stream is generated, all error messages would be sent to client, instead of media stream.
Review URL: https://codereview.chromium.org/11146008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162235 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:37:18 +00:00
a8c95cc9bd Deleted junk file.
BUG=


Review URL: https://chromiumcodereview.appspot.com/11187002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162234 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:36:36 +00:00
92fa4d294c Expose the WebGraphicsContext3D for Android
- Expose the WebGraphicsContext3D for Android's Compositor.

BUG=


Review URL: https://chromiumcodereview.appspot.com/11090075

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162231 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:31:51 +00:00
205f07892d Add flag for carrier switch to about:flags.
TBR=sky@chromium.org
BUG=chrome-os-partner:14207

Review URL: https://codereview.chromium.org/11192012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162230 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:26:22 +00:00
c27f1150a6 Bug fix: in process router should not expect a sync message from host to plugin. Replies to sync messages are not sync message.
BUG=


Review URL: https://chromiumcodereview.appspot.com/11112004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162229 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:23:48 +00:00
177e62bc0a Update .DEPS.git
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162228 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:21:28 +00:00
c52d272672 WebKit roll 131457:131478
TBR=danakj

Review URL: https://codereview.chromium.org/11198003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162227 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:18:57 +00:00
64d113db7c Add common_resources.grd for non-localizeable chromoting resources.
The new common_resources.grd will be used for non-loalizeable resources, 
such as images.


Review URL: https://chromiumcodereview.appspot.com/11087059

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162226 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:18:29 +00:00
431d0a1458 Fix some potential Mach port leaks from mach_host_self using a new ScopedMachPort class.
BUG=119379
TEST=none


Review URL: https://chromiumcodereview.appspot.com/11188003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162225 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:17:58 +00:00
6361c61b55 Remove legacy draggable region code and refactor to share common draggable region code
BUG=none
TEST=manual test by verifying new draggable region syntax works


Review URL: https://chromiumcodereview.appspot.com/11028125

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162224 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:07:14 +00:00
c390323860 Remove obsolete code that handles menu key release for chromeos
BUG=140319
TEST=none

Review URL: https://chromiumcodereview.appspot.com/11150035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162223 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:03:22 +00:00
e160373f68 More expectations updates from shadow dom flag enable:
xp-release-single-core/intl1/times: http://build.chromium.org/f/chromium/perf/xp-release-single-core/intl1/report.html?history=150&rev=161784
xp-release-single-core/intl2/times: http://build.chromium.org/f/chromium/perf/xp-release-single-core/intl2/report.html?history=150&rev=161784
chromium-rel-win7-dual/intl1/times: http://build.chromium.org/f/chromium/perf/chromium-rel-win7-dual/intl1/report.html?history=150&rev=161784

BUG=155620


Review URL: https://chromiumcodereview.appspot.com/11144020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162222 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 20:03:02 +00:00
d6a4574ada Removing "WinHttpGetProxyForUrl failed" message.
WinHttpGetProxyForUrl() can fail in some network configurations. For example it often fails when running in a home network when it cannot download the PAC script. In other words it is normal for this function to fail and the calling cade should just be able to handle it (which is does already).

BUG=156135

Review URL: https://codereview.chromium.org/11183007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162220 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:53:00 +00:00
344aa38c67 Fix display id type in long press affordance handler. Currently, the affordance
does not show up because the display id gets mangled due to mismatching type.

BUG=155523


Review URL: https://chromiumcodereview.appspot.com/11189005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162219 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:51:50 +00:00
14b7e9a496 Receiving Connection: Proxy-Bypass induces proxy fallback.
BUG=143712


Review URL: https://chromiumcodereview.appspot.com/10987043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162218 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:51:29 +00:00
f57c14b47c cros: Fix crash in about:tracing
We've seen some crashes in DebugDaemonClientImpl::OnRequestStopSystemTracing.
If debugd crashes or completes I/O back to Chrome too early we could NULL out
a scoped_ptr<> before the code expects it.  Null check the pointer.

BUG=155774
TEST=crash reports


Review URL: https://chromiumcodereview.appspot.com/11155017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162217 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:46:19 +00:00
a9fb79dba9 Make GLES2Implementation based on GLES2Interface
GLES2Interface is a pure virutal interface. It's likely
that more functions of GLES2Implementation will need have
be declared in GLES2Interface but this is a first step

BUG=155914


Review URL: https://chromiumcodereview.appspot.com/11138021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162216 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:46:06 +00:00
c5531187d4 Roll grit 76:77
Review URL: https://codereview.chromium.org/11188006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162215 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:45:45 +00:00
11e81a9155 Add the swap size to the PostSubBuffer trace event
BUG=

Review URL: https://chromiumcodereview.appspot.com/11117003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162213 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:35:19 +00:00
256897738e Get the document language directly from WebKit rather than trying to figure
it out ourselves.  Since WebKit is already case-insensitive, this fixes
test-case .  Test-Case  requires WebKit support for extracting the
language from the HTTP headers (https://bugs.webkit.org/show_bug.cgi?id=97929).

Note that this patch will fail completely until a WebKit patch to export
this information is accepted (https://bugs.webkit.org/show_bug.cgi?id=98066).

BUG=145689


Review URL: https://chromiumcodereview.appspot.com/11052002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162212 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:35:05 +00:00
dddc4a0731 Reverting this CL because it was committed before I gave the final LGTM.
Revert 162142 - Full Screen Magnifier: Add MagnificationManager

MagnificationManager controls the full screen magnifier from chrome-browser side (not ash side. Note that MagnificationController is on ash side).

MagnificationManager does:
- Watch logged-in. Change the behavior between the login screen and user desktop. 
- Watch change of the pref. When the pref changes, the setting of the magnifier will interlock with it.

In addition, this patch make the magnifier settings per-user instead of per-device.

BUG=151891
TEST=manual, browser_test passes.

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162080

Review URL: https://chromiumcodereview.appspot.com/11065008

TBR=yoshiki@chromium.org
Review URL: https://codereview.chromium.org/11194011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162211 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:30:03 +00:00
dd81d183d4 [Android WebView] Support for fetching Android Java resources.
Add AwResource.java, a class that defines a set of resource IDs and
functionality to resolve those IDs to concrete resources.

Initially, we add three resources - two raw resources to represent
error pags and a string resource for default text encoding.

The embedder should set up the IDs before starting to use Chromium.

Review URL: https://codereview.chromium.org/11145026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162205 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:15:48 +00:00
4b80aecb29 Revert 162140 - ash : Decouple power button controller and session state controller.
Prepare code to introduce two versions of SessionStateController later.

BUG=138171, 139461


Review URL: https://chromiumcodereview.appspot.com/11091023

TBR=antrim@chromium.org
Review URL: https://codereview.chromium.org/11185006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162201 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:13:27 +00:00
44a4b56690 [Panels] Fix favicon crash from using deleted WebContents.
Updated TaskManagerPanelResourceProvider to no longer expect Panel to have web contents after web contents are disconnected.

BUG=155133
TEST=updated

Review URL: https://chromiumcodereview.appspot.com/11092066

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162200 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:12:29 +00:00
32e2d81b79 [Search] Addresses several issues around Google search term extraction for instant extended api:
(1) Adds an additional template pattern with "webhp"
(2) ExtractSearchTermsFromURL now requires HTTPS

BUG=135106
TEST=Standard unit tests under TemplateURL.*


Review URL: https://chromiumcodereview.appspot.com/11094046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162199 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 19:03:25 +00:00
3ff52468b6 add browser_tests.gtest-drmemory_win32.txt for browser_tests with drmemory
Review URL: https://codereview.chromium.org/11139013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162197 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:52:51 +00:00
3207659f49 Factoring out of FaviconLoader
TBR=jhawkins@chromium.org
R=gbillock@chromium.org

BUG=none

Review URL: https://codereview.chromium.org/11137024

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162195 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:51:30 +00:00
e591a925ca retry 160232
gtk: improve web intent picker inline intent display

BUG=153998

Review URL: https://codereview.chromium.org/11040053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162193 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:47:28 +00:00
c410a2cb9f Android: lazy initialization for method id.
Rather than requiring early registration for all method id, we can initialize
them lazily as required.
This solves the problem of building against SDK X but running against X - 1.
Also adds a microbenchmark to ensure there are no considerable regressions.
Results are a bit variable, but it hovers over:
[ERROR:jni_android_unittest.cc(125)] JNI LazyMethodIDCall (us) 1983
[ERROR:jni_android_unittest.cc(127)] JNI MethodIDCall (us) 1862

BUG=152987
TEST=JNIAndroidMicrobenchmark.MethodId
TBR=akalin

Review URL: https://chromiumcodereview.appspot.com/11038015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162186 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:35:10 +00:00
784ba78a56 Supply X & Y deltas in the right order when creating new-style wheel events.
This fixes the scroll-wheel axes being swapped when connecting to Mac hosts.

BUG=155960


Review URL: https://chromiumcodereview.appspot.com/11140047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162185 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:34:36 +00:00
06c84e4068 No need to support old style dasher domains.
BUG=137118
TEST=See unit tests, not called in any code yet


Review URL: https://chromiumcodereview.appspot.com/11185002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162184 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:34:24 +00:00
e7837c1c67 Avoid using ScreenPositionController in ColoredWindowController's ctor
The current code causes a crash if |parent| belongs to 2nd display.  We may want to ensure that |parent| shouldn't have kUsesScreenCoordinatesKey, but this CL rather fixes the caller's code as a quick fix.

BUG=155656
TEST=on goobuntu, run chrome with --aura-host-window-size='800+0-1000x800,800+900-800x600', move a window to 2nd display, click the maximize button, and make sure that the click doesn't cause any crashes.

Review URL: https://chromiumcodereview.appspot.com/11150031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162183 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:30:26 +00:00
20df714da7 Update .DEPS.git
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162178 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:21:24 +00:00
9ec0c40457 WebKit roll 131421:131457
TBR=danakj

Review URL: https://codereview.chromium.org/11189003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162177 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:18:39 +00:00
092ba99e28 sync: Merge {Verify,Process}UpdatesCommand
The VerifyUpdatesCommand was used to ensure the validity of each update
that had been delivered from the server and to prepare for the
ProcessUpdatesCommand.  The ProcessUpdatesCommand would then take all
updates that had been successfully verified and move them into the
SERVER_ fields of the sync directory.

It turns out that the logic can be greatly simplified by performing both
tasks within the same command.  This patch does not take full advantage
of the merge.  This patch is intended simply to merge the two files,
with the goal of performing more significant refactorings later.

BUG=154654


Review URL: https://chromiumcodereview.appspot.com/11091009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162176 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:14:43 +00:00
ec06f819c6 De-flake android_webview testOnReceivedErrorOnInvalidUrl.
Ran test 30 times locally, 100% pass rate.

BUG=152033


Review URL: https://chromiumcodereview.appspot.com/11184002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162175 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:14:05 +00:00
5c9602c7cd Show custom wallpaper container and cannot access wallpaper message when device offline.
When no network, xmlhttprequest will throw an exception 101. This CL catches the exception and shows an error message in wallpaper picker.


BUG=153895


Review URL: https://chromiumcodereview.appspot.com/11066090

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162174 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:13:54 +00:00
36ac5fbe3d Remove more tests from the NaCl SCons build.
* pnacl_test_example was a smoke test that broke in revision r161425.

 * browser_startup_time was a performance test that needs to be redone to work on the Chrome bots.

 * stress_many_nexes was a manual test.

BUG= http://code.google.com/p/chromium/issues/detail?id=154400

Review URL: https://chromiumcodereview.appspot.com/11145002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162173 0039d316-1c4b-4281-b951-d872f2087c98
2012-10-16 18:09:16 +00:00