blob: 86db0ce7e1238b771a1ccc4437d2cf989bb9b529 [file] [log] [blame] [view]
nodir469b2a12015-09-14 16:20:211# Chromium docs
2
pwnall3f918382016-11-16 17:22:123This directory contains chromium project documentation in
Vincent Scheibde853a02017-07-13 23:31:184[Gitiles-flavored Markdown]. It is automatically [rendered by Gitiles].
5
6[Gitiles-flavored Markdown]: https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md
7[rendered by Gitiles]: https://chromium.googlesource.com/chromium/src/+/master/docs/
nodir469b2a12015-09-14 16:20:218
justincarlson90a1c8c2017-04-14 00:34:259If you add new documents, please also add a link to them in the Document Index
10below.
11
12[TOC]
13
Vincent Scheib394b907a2017-07-14 22:30:0614## Creating Documentation
nodir469b2a12015-09-14 16:20:2115
Vincent Scheibde853a02017-07-13 23:31:1816Markdown documents must follow the
17[style guide](https://github.com/google/styleguide/tree/gh-pages/docguide).
nodir469b2a12015-09-14 16:20:2118
Vincent Scheib394b907a2017-07-14 22:30:0619### Preview local changes using [md_browser](../tools/md_browser/):
nodir6efa4992015-12-20 00:54:3320
21```bash
22# in chromium checkout
agabled40b9542016-05-11 01:15:0623./tools/md_browser/md_browser.py
nodir6efa4992015-12-20 00:54:3324```
25
Vincent Scheib394b907a2017-07-14 22:30:0626This is only an estimate. The **gitiles** view may differ.
nodir6efa4992015-12-20 00:54:3327
Vincent Scheib394b907a2017-07-14 22:30:0628### Review changes online with gerrit's links to gitiles:
29
Mathieu Perreault339625382017-07-29 00:32:58301. Upload a patch to gerrit, or receive a review request.
Vincent Scheib394b907a2017-07-14 22:30:0631 e.g. https://chromium-review.googlesource.com/c/572236
Mathieu Perreault339625382017-07-29 00:32:58322. View a specific .md file.
Vincent Scheib394b907a2017-07-14 22:30:0633 e.g. https://chromium-review.googlesource.com/c/572236/2/docs/README.md
343. Click on **gitiles** link at top of page.
35
36This **gitiles** view is the authoritative view, exactly the same as will be
37used when committed.
nodir6efa4992015-12-20 00:54:3338
justincarlson90a1c8c2017-04-14 00:34:2539## Document Index
40
41### Checking Out and Building
42* [Linux Build Instructions](linux_build_instructions.md) - Linux
43* [Mac Build Instructions](mac_build_instructions.md) - MacOS
44* [Windows Build Instructions](windows_build_instructions.md) - Windows
45* [Android Build Instructions](android_build_instructions.md) - Android target
46 (on a Linux host)
47* [Cast Build Instructions](linux_cast_build_instructions.md) - Cast target
48 (on a Linux host)
49* [Cast for Android Build Instructions](android_cast_build_instructions.md) -
50 Cast for Android (on a Linux host)
Scott Graham6b17c6522018-09-25 20:39:3651* [Fuchsia Build Instructions](fuchsia_build_instructions.md) - Fuchsia target
52 (on a Linux host)
justincarlson90a1c8c2017-04-14 00:34:2553* [iOS Build Instructions](ios/build_instructions.md) - iOS target (on a MacOS
54 host)
Euisang Lim1f253912018-04-30 01:46:3255* [Chrome OS Build Instructions](chromeos_build_instructions.md) - Chrome OS
justincarlson90a1c8c2017-04-14 00:34:2556* [Linux Chromium ARM Recipes](linux_chromium_arm.md) - Recipes for building
57 Chromium for ARM on Linux.
justincarlson90a1c8c2017-04-14 00:34:2558* [Chrome Component Build](component_build.md) - Faster builds using more
59 libraries
60* [Using the BuildRunner](using_build_runner.md) - Scripts that extract build
61 stops from builders and runs them locally on a slave
62* [Cr User Manual](cr_user_manual.md) - Manual for `cr`, a tool that tries to
63 hide some of the tools used for working on Chromium behind an abstraction
64 layer
65
justincarlsonad589ce2017-04-20 17:26:0766### Design Docs
67* See [design/README.md](design/README.md)
68
justincarlson90a1c8c2017-04-14 00:34:2569### Integrated Development Environment (IDE) Set Up Guides
70* [Android Studio](android_studio.md) - Android Studio for Android builds
71* [Eclipse for Android](eclipse.md) - Eclipse for Android
72* [Eclipse for Linux](linux_eclipse_dev.md) - Eclipse for other platforms
73 (This guide was written for Linux, but is probably usable on Windows/MacOS
74 as well)
75* [Qt Creator](qtcreator.md) - Using Qt Creator as an IDE or GUI debugger
76* [Setting up Visual Studio Code](vscode.md) - Visual Studio Code
77* [EMACS Notes](emacs.md) - EMACS commands/styles/tool integrations
78* [Atom](atom.md) - Atom multi-platform code editor
79
80### Git
81* [Git Cookbook](git_cookbook.md) - A collection of git recipes for common
82 tasks
83* [Git Tips](git_tips.md) - More git tips
84
85### Clang
86* [Clang Compiler](clang.md) - General information on the clang compiler, used
87 by default on Mac and Linux
88* [Clang Tool Refactoring](clang_tool_refactoring.md) - Leveraging clang tools
89 to perform refactorings that are AST-aware
90* [The Clang Static Analyzer](clang_static_analyzer.md) - How to enable static
91 analysis at build time
92* [Writing Clang Plugins](writing_clang_plugins.md) - Don't write a clang
93 plugin, but if you do, read this
94* [Updating Clang](updating_clang.md) - Updating the version of Clang used to
95 build
96* [Using clang-format on Chromium C++ Code](clang_format.md) - Various ways to
97 invoke clang-format on C++ code
98* [Clang Tidy](clang_tidy.md) - Support for the `clang-tidy` tool in Chromium
99* [Updating Clang Format Binaries](updating_clang_format_binaries.md) - How up
100 update the clang-format binaries that come with a checkout of Chromium
101
102### General Development
103* [Code Reviews](code_reviews.md) - Code review requirements and guidelines
Mathieu Perreault339625382017-07-29 00:32:58104* [Respectful Code Reviews](cr_respect.md) - A guide for code reviewers
105* [Respectful Changes](cl_respect.md) - A guide for code authors
Eric Foo6ea4fbd2018-01-17 04:04:50106* [LUCI Migration FAQ](luci_migration_faq.md) - FAQ on Buildbot-to-LUCI
107 builder migration for Chromium
Eric Fooff7b4982017-12-19 01:59:15108* [Tour of Continuous Integration UI](tour_of_luci_ui.md) - A tour of our
Eric Foo6ea4fbd2018-01-17 04:04:50109 the user interface for LUCI, our continuous integration system
erikchenb83e010a2018-10-08 21:34:01110* [Parsing Test Results](parsing_test_results.md) - An introduction for how to
111 understand the results emitted by polygerrit and CI builds.
justincarlson90a1c8c2017-04-14 00:34:25112* [Closure Compilation](closure_compilation.md) - The _Closure_ JavaScript
113 compiler
fdoraybacba4a22017-05-10 21:10:00114* [Threading and Tasks in Chrome](threading_and_tasks.md) - How to run tasks
115 and handle thread safety in Chrome.
justincarlson90a1c8c2017-04-14 00:34:25116* [Callback<> and Bind()](callback.md) - All about Callbacks, Closures, and
117 Bind().
118* [Views Platform Styling](ui/views/platform_style.md) - How views are styled
119 to fit in different native platforms
120* [Tab Helpers](tab_helpers.md) - Using WebContents/WebContentsObserver to add
121 features to browser tabs.
122* [Adding third_party Libraries](adding_to_third_party.md) - How to get code
123 into third_party/
124* [Graphical Debugging Aid for Chromium Views](graphical_debugging_aid_chromium_views.md) -
125 Visualizing view trees during debugging
126* [Bitmap Pipeline](bitmap_pipeline.md) - How bitmaps are moved from the
127 renderer to the screen.
128* [base::Optional](optional.md) - How to use `base::Optional` in C++ code.
129* [Using the Origin Trials Framework](origin_trials_integration.md) - A
130 framework for conditionally enabling experimental APIs for testing.
Jan Krcal02520366d2018-03-07 10:05:18131* [`ClientTagBasedModelTypeProcessor` in Unified Sync and Storage](sync/uss/client_tag_based_model_type_processor.md) -
justincarlson90a1c8c2017-04-14 00:34:25132 Notes on the central data structure used in Chrome Sync.
133* [Chrome Sync's Model API](sync/model_api.md) - Data models used for syncing
134 information across devices using Chrome Sync.
135* [Ozone Overview](ozone_overview.md) - Ozone is an abstraction layer between
136 the window system and low level input and graphics.
137* [Optimizing Chrome Web UIs](optimizing_web_uis.md) - Notes on making webuis
138 more performant
Makoto Shimazu9f0bd3a2017-08-08 01:54:24139* [Adding a new feature flag in chrome://flags](how_to_add_your_feature_flag.md) - Quick
140 guide to add a new feature flag to experiment your feature.
Dimitri Glazkov2070775d2017-10-24 17:47:02141* [Guidelines for considering branch dates in project planning](release_branch_guidance.md) -
142 What to do (and not to do) around branch dates when scheduling your project
143 work.
justincarlson90a1c8c2017-04-14 00:34:25144
145### Testing
146* [Running and Debugging Layout Tests](testing/layout_tests.md)
147* [Writing Layout Tests](testing/writing_layout_tests.md) - Layout Tests using
148 `content_shell`
149* [Layout Test Expectations and Baselines](testing/layout_test_expectations.md) -
150 Setting expected results of layout tests.
151* [Layout Tests Tips](testing/layout_tests_tips.md) - Best practices for Layout
152 Tests
153* [Layout Tests with Manual Fallback](testing/layout_tests_with_manual_fallback.md) -
154 Writing tests that simulate manual interventions
155* [Extending the Layout Test Framework](how_to_extend_layout_test_framework.md)
156* [Fixing Layout Test Flakiness](testing/identifying_tests_that_depend_on_order.md) -
157 Diagnosing and fixing layout test flakiness due to ordering dependencies.
158* [Running Layout Tests using `content_shell`](testing/layout_tests_in_content_shell.md) -
159 Running layout tests by hand.
justincarlson90a1c8c2017-04-14 00:34:25160* [Web Platform Tests](testing/web_platform_tests.md) - Shared tests across
161 browser vendors
162* [Using Breakpad with `content_shell`](testing/using_breakpad_with_content_shell.md) -
163 Capture stack traces on layout test crashes without an attached debugger
164* [Test Descriptions](test_descriptions.md) - Unit test targets that can be
165 built, with associated desciptions.
166* [IPC Fuzzer](ipc_fuzzer.md) - Fuzz testing of Chromium IPC interfaces.
167
Kenneth Russell9618adde2018-05-03 03:16:05168### GPU-related docs
169* [GPU Pixel Wrangling](gpu/pixel_wrangling.md) - Instructions for GPU
170 pixel wrangling (the GPU sheriffing rotation).
171* [Debugging GPU related code](gpu/debugging_gpu_related_code.md) - Hints for
172 debugging GPU- and graphics-related code.
173* [GPU Testing](gpu/gpu_testing.md) - Description of Chromium's GPU testing
174 infrastructure.
175* [GPU Bot Details](gpu/gpu_testing_bot_details.md) - In-depth description of
176 how the bots are maintained.
177
justincarlson90a1c8c2017-04-14 00:34:25178### Misc Linux-Specific Docs
179* [Linux Proxy Config](linux_proxy_config.md) - Network proxy sources on Linux
180* [Debugging SSL on Linux](linux_debugging_ssl.md) - Tips on debugging SSL
181 code in Linux
182* [Linux Cert Managment](linux_cert_management.md) - Managing X.509
183 Certificates in Linux
184* [Tips for Debugging on Linux](linux_debugging.md)
185* [Linux GTK Theme Integration](linux_gtk_theme_integration.md) - Having
186 Chrome match the GTK+ theme.
187* [Gtk vs ViewsGtk](gtk_vs_views_gtk.md) - Notes on when to use Gtk vs
188 ViewsGtk
189* [Browser Plugins on Linux](linux_plugins.md) - A collection of links to
190 information on how browser plugins work on Linux
191* [Linux Crash Dumping](linux_crash_dumping.md) - How Breakpad uploads crash
192 reports to Google crash servers.
193* [Linux Minidump to Core](linux_minidump_to_core.md) - How to convert a
194 Breakpad-generated minidump files to a core file readable by most debuggersx
195* [Linux Sandbox IPC](linux_sandbox_ipc.md) - The lower level UPC system used
196 to route requests from the bottom of the call stack up into the browser.
197* [Linux Dev Build as Default Browser](linux_dev_build_as_default_browser.md) -
198 How to configure a Dev build of Chrome as the default browser in Linux.
199* [Linux Chromium Packages](linux_chromium_packages.md) - Packages of Chromium
200 browser (not Chrome) provided by some Linux distributions.
201* [`seccomp` Sandbox Crash Dumping](seccomp_sandbox_crash_dumping.md) - Notes
202 on crash dumping a process running in a seccomp sandbox.
203* [Linux Password Storage](linux_password_storage.md) - Keychain integrations
204 between Chromium and Linux.
Ivan Sandrkfe73ee82018-03-23 11:54:16205* [Linux Sublime Development](sublime_ide.md) - Using Sublime as an IDE
justincarlson90a1c8c2017-04-14 00:34:25206 for Chromium development on Linux.
207* [Building and Debugging GTK](linux_building_debug_gtk.md) - Building
208 Chromium against GTK using lower optimization levels and/or more debugging
209 symbols.
210* [Debugging GTK](linux_debugging_gtk.md) - Using the GTK Debug packages and
211 related tools.
212* [Chroot Notes](using_a_linux_chroot.md) - Setting up a chroot to work around
213 libfreetype differences in some versions of Linux.
214* [Linux Sandboxing](linux_sandboxing.md) - The Linux multi-process model to
215 isolate browser components with different privileges.
216* [Zygote Process](linux_zygote.md) - How the Linux Zygote process, used to
217 spawn new processes, works.
218* [Running Layout Tests on Linux](layout_tests_linux.md) - Linux-specific
219 instructions for running layout tests.
220* [Linux Sysroot Images](linux_sysroot.md) - How builds use libraries on Linux
justincarlson90a1c8c2017-04-14 00:34:25221* [Linux Hardware Video Decoding](linux_hw_video_decode.md) - Enabling
222 hardware video decode codepaths on Linux
223
224### Misc MacOS-Specific Docs
225* [Using CCache on Mac](ccache_mac.md) - Speed up builds on Mac using ccache
226 with clang/ninja
227* [Cocoa tips and tricks](cocoa_tips_and_tricks.md) - A collection of idioms
228 used when writing Cocoa views and controllers
229* [MacViews Release Plan](ui/views/macviews_release.md)
230
231### Misc Windows-Specific Docs
232* [Handling cygwin rebaseall failures](cygwin_dll_remapping_failure.md)
233* [Hacking on ANGLE in Chromium](angle_in_chromium.md) - OpenGL ES 2.0 built
234 on top of DirectX
235* [Retrieveing Code Analysis Warnings](retrieving_code_analysis_warnings.md) -
236 How to retrieve and summarize the warnings generated by Microsoft VC++'s
237 `/analyze` compile option.
238* [Windows Split DLLs](windows_split_dll.md) - Splitting `chrome.dll` into
239 multiple dlls to work around toolchain limitations on Windows.
240
241### Misc Android-Specific Docs
242* [Google Play Services in Chrome for Android](google_play_services.md)
243* [Accessing C++ Enums in Java](android_accessing_cpp_enums_in_java.md) - How
244 to use C++-defined enums in Java code
245* [Profiling Content Shell on Android](profiling_content_shell_on_android.md) -
246 Setting up profiling for `content_shell` on Android
247* [Working Remotely with Android](working_remotely_with_android.md) - Building
248 on a remote machine for an Android device connected to your local machine
justincarlson90a1c8c2017-04-14 00:34:25249* [Android Test Instructions](android_test_instructions.md) - Running a build
250 on an Android device or emulator.
251* [Android Debugging](android_debugging_instructions.md) - Tools and tips for
252 how to debug Java and/or C/C++ code running on Android.
253* [Android Logging](android_logging.md) - How Chrome's logging API works with
254 `android.util.Log` on Android, and usage guidelines.
255* [Chromoting Android Hacking](chromoting_android_hacking.md) - Viewing the
256 logs and debugging the Chrome Remote Desktop Android client.
David 'Digit' Turner40560ef72018-03-07 09:44:28257* [Android Java Static Analysis](../build/android/docs/lint.md) - Catching
258 Java related issues at compile time with the 'lint' tool.
259* [Java Code Coverage](../build/android/docs/coverage.md) - Collecting code
260 coverage data with the EMMA tool.
261* [Android BuildConfig files](../build/android/docs/build_config.md) -
262 What are .build_config files and how they are used.
David 'Digit' Turner90944742018-08-03 13:22:08263* [Android App Bundles](../build/android/docs/android_app_bundles.md) -
264 How to build Android app bundles for Chrome.
justincarlson90a1c8c2017-04-14 00:34:25265
266### Misc iOS-Specific Docs
267* [Continuous Build and Test Infrastructure for Chromium for iOS](ios/infra.md)
268* [Opening links in Chrome for iOS](ios/opening_links.md) - How to have your
269 iOS app open links in Chrome.
270* [User Agent in Chrome for iOS](ios/user_agent.md) - Notes on User Agent
271 strings using Chrome for iOS.
Mike Baxley47db7d82017-11-16 15:57:17272* [Running iOS test suites locally](ios/testing.md)
justincarlson90a1c8c2017-04-14 00:34:25273
Daniel Eratace8d3622017-12-20 23:27:24274### Misc Chrome-OS-Specific Docs
275* [Chrome Logging on Chrome OS](chrome_os_logging.md)
276
justincarlson90a1c8c2017-04-14 00:34:25277### Media
278* [Audio Focus Handling](media/audio_focus.md) - How multiple MediaSession
279 audio streams interact
280* [Autoplay of HTMLMediaElements](media/autoplay.md) - How HTMLMediaElements
281 are autoplayed.
282* [Piranha Plant](piranha_plant.md) - Future architecture of MediaStreams
283
284### Accessibility
285* [Accessibility Overview](accessibility/overview.md) - Overview of
286 accessibility concerns and approaches in Chromium.
287* [Accessibility Tests](accessibility/tests.md) - Where to find
288 accessibility-related tests in the codebase.
289* [ChromeVox on Chrome OS](accessibility/chromevox.md) - Enabling spoken
290 feedback (ChromeVox) on Chrome OS.
291* [ChromeVox on Desktop Linux](accessibility/chromevox_on_desktop_linux.md) -
292 Enabling spoken feedback (ChromeVox) on desktop Linux.
Katie Ded1a9972018-04-17 16:22:18293* [Offscreen, Invisible and Size](accessibility/offscreen.md) - How Chrome
294 defines offscreen, invisible and size in the accessibility tree.
erikchenb83e010a2018-10-08 21:34:01295* [Text to Speech](accessibility/tts.md) - Overview of text to speech in
Katie Ded1a9972018-04-17 16:22:18296 Chrome and Chrome OS.
justincarlson90a1c8c2017-04-14 00:34:25297* [BRLTTY in Chrome OS](accessibility/brltty.md) - Chrome OS integration with
298 BRLTTY to support refreshable braille displays
299* [PATTS on Chrome OS](accessibility/patts.md) - Notes on the PATTS speech
300 sythesis engine used on Chrome OS
301* [VoiceOver](ios/voiceover.md) - Using Apple's VoiceOver feature with
302 Chromium on iOS.
303
Erik Chencd19c162018-04-21 00:27:24304### Memory
305* [Memory Overview](memory/README.md)
306
justincarlson90a1c8c2017-04-14 00:34:25307### Memory Infrastructure Timeline Profiling (MemoryInfra)
308* [Overview](memory-infra/README.md)
309* [GPU Profiling](memory-infra/probe-gpu.md)
310* [Adding Tracing to a Component](memory-infra/adding_memory_infra_tracing.md)
311* [Enabling Startup Tracing](memory-infra/memory_infra_startup_tracing.md)
312* [Memory Usage in CC](memory-infra/probe-cc.md)
313* [Memory Benchmarks](memory-infra/memory_benchmarks.md)
314* [Heap Profiling](memory-infra/heap_profiler.md)
justincarlson90a1c8c2017-04-14 00:34:25315
316### Misc
317* [Useful URLs](useful_urls.md) - A collection of links to various tools and
318 dashboards
319* [ERC IRC](erc_irc.md) - Using ERC in EMACS to access IRC
320* [Kiosk Mode](kiosk_mode.md) - Simulating kiosk mode.
321* [User Handle Mapping](user_handle_mapping.md) - Names of developers across
322 Chromium/IRC/Google
323* [Documentation Best Practices](documentation_best_practices.md)
324* [Documentation Guidelines](documentation_guidelines.md)
justincarlson90a1c8c2017-04-14 00:34:25325* [Chromium Browser vs Google Chrome](chromium_browser_vs_google_chrome.md) -
326 What's the difference between _Chromium Browser_ and _Google Chrome_?
327* [Proxy Auto Config using WPAD](proxy_auto_config.md) - How WPAD servers are
328 used to automatically set proxy settings.
329* [Installing Chromium OS on VMWare](installation_at_vmware.md) - How to
330 install Chromium OS on VMWare.
Steve Kobes22fb19c2017-07-05 21:49:08331* [User Data Directory](user_data_dir.md) - How the user data and cache
332 directories are determined on all platforms.
justincarlson90a1c8c2017-04-14 00:34:25333
334### Probably Obsolete
justincarlson90a1c8c2017-04-14 00:34:25335* [TPM Quick Reference](tpm_quick_ref.md) - Trusted Platform Module notes.
336* [System Hardening Features](system_hardening_features.md) - A list of
337 current and planned Chrome OS security features.
338* [Browser View Resizer](browser_view_resizer.md) - Design doc for making
339 browser window resizing easier on Windows.
340* [WebView Policies](webview_policies.md)
341* [Linux Profiling](linux_profiling.md) - How to profile Chromium on Linux
342* [Linux Graphics Pipeline](linux_graphics_pipeline.md)
343* [Linux `SUID` Sandbox](linux_suid_sandbox.md) - Sandboxing renderers using a
344 SUID binary on Linux
345* [Linux `SUID` Sandbox Development](linux_suid_sandbox_development.md) -
346 Development on the above system.
347* [Linux PID Namespace Support](linux_pid_namespace_support.md)
348* [Vanilla msysgit workflow](vanilla_msysgit_workflow.md) - A workflow for
349 using mostly vanilla git on Windows.
350* [Old Chromoting Build Instructions](old_chromoting_build_instructions.md)
351* [Old Options](chrome_settings.md) - Pre-Material Design chrome://settings
352 notes.