blob: 0d0f7014e3b8da978f0ec7b6bf9ea9f9f583ee67 [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)
51* [iOS Build Instructions](ios/build_instructions.md) - iOS target (on a MacOS
52 host)
53* [Linux Chromium ARM Recipes](linux_chromium_arm.md) - Recipes for building
54 Chromium for ARM on Linux.
55* [Common Build Tasks](common_build_tasks.md) - Recipes for slightly more
56 advanced build tasks
57* [Chrome Component Build](component_build.md) - Faster builds using more
58 libraries
59* [Using the BuildRunner](using_build_runner.md) - Scripts that extract build
60 stops from builders and runs them locally on a slave
61* [Cr User Manual](cr_user_manual.md) - Manual for `cr`, a tool that tries to
62 hide some of the tools used for working on Chromium behind an abstraction
63 layer
64
justincarlsonad589ce2017-04-20 17:26:0765### Design Docs
66* See [design/README.md](design/README.md)
67
justincarlson90a1c8c2017-04-14 00:34:2568### Integrated Development Environment (IDE) Set Up Guides
69* [Android Studio](android_studio.md) - Android Studio for Android builds
70* [Eclipse for Android](eclipse.md) - Eclipse for Android
71* [Eclipse for Linux](linux_eclipse_dev.md) - Eclipse for other platforms
72 (This guide was written for Linux, but is probably usable on Windows/MacOS
73 as well)
74* [Qt Creator](qtcreator.md) - Using Qt Creator as an IDE or GUI debugger
75* [Setting up Visual Studio Code](vscode.md) - Visual Studio Code
76* [EMACS Notes](emacs.md) - EMACS commands/styles/tool integrations
77* [Atom](atom.md) - Atom multi-platform code editor
78
79### Git
80* [Git Cookbook](git_cookbook.md) - A collection of git recipes for common
81 tasks
82* [Git Tips](git_tips.md) - More git tips
83
84### Clang
85* [Clang Compiler](clang.md) - General information on the clang compiler, used
86 by default on Mac and Linux
87* [Clang Tool Refactoring](clang_tool_refactoring.md) - Leveraging clang tools
88 to perform refactorings that are AST-aware
89* [The Clang Static Analyzer](clang_static_analyzer.md) - How to enable static
90 analysis at build time
91* [Writing Clang Plugins](writing_clang_plugins.md) - Don't write a clang
92 plugin, but if you do, read this
93* [Updating Clang](updating_clang.md) - Updating the version of Clang used to
94 build
95* [Using clang-format on Chromium C++ Code](clang_format.md) - Various ways to
96 invoke clang-format on C++ code
97* [Clang Tidy](clang_tidy.md) - Support for the `clang-tidy` tool in Chromium
98* [Updating Clang Format Binaries](updating_clang_format_binaries.md) - How up
99 update the clang-format binaries that come with a checkout of Chromium
100
101### General Development
102* [Code Reviews](code_reviews.md) - Code review requirements and guidelines
Mathieu Perreault339625382017-07-29 00:32:58103* [Respectful Code Reviews](cr_respect.md) - A guide for code reviewers
104* [Respectful Changes](cl_respect.md) - A guide for code authors
justincarlson90a1c8c2017-04-14 00:34:25105* [Closure Compilation](closure_compilation.md) - The _Closure_ JavaScript
106 compiler
fdoraybacba4a22017-05-10 21:10:00107* [Threading and Tasks in Chrome](threading_and_tasks.md) - How to run tasks
108 and handle thread safety in Chrome.
justincarlsonefe31a62017-05-17 00:37:25109* [Subtle Threading Bugs and Patterns to Avoid Them](subtle_threading_bugs.md) -
110 Threading pitfalls to avoid.
justincarlson90a1c8c2017-04-14 00:34:25111* [Callback<> and Bind()](callback.md) - All about Callbacks, Closures, and
112 Bind().
113* [Views Platform Styling](ui/views/platform_style.md) - How views are styled
114 to fit in different native platforms
115* [Tab Helpers](tab_helpers.md) - Using WebContents/WebContentsObserver to add
116 features to browser tabs.
117* [Adding third_party Libraries](adding_to_third_party.md) - How to get code
118 into third_party/
119* [Graphical Debugging Aid for Chromium Views](graphical_debugging_aid_chromium_views.md) -
120 Visualizing view trees during debugging
121* [Bitmap Pipeline](bitmap_pipeline.md) - How bitmaps are moved from the
122 renderer to the screen.
123* [base::Optional](optional.md) - How to use `base::Optional` in C++ code.
124* [Using the Origin Trials Framework](origin_trials_integration.md) - A
125 framework for conditionally enabling experimental APIs for testing.
126* [`SharedModelTypeProcessor` in Unified Sync and Storage](sync/uss/shared_model_type_processor.md) -
127 Notes on the central data structure used in Chrome Sync.
128* [Chrome Sync's Model API](sync/model_api.md) - Data models used for syncing
129 information across devices using Chrome Sync.
130* [Ozone Overview](ozone_overview.md) - Ozone is an abstraction layer between
131 the window system and low level input and graphics.
132* [Optimizing Chrome Web UIs](optimizing_web_uis.md) - Notes on making webuis
133 more performant
134* [ES6 Support in Chromium](es6_chromium.md) - Implementation of ECMAScript6
135 features in Chromium
Makoto Shimazu9f0bd3a2017-08-08 01:54:24136* [Adding a new feature flag in chrome://flags](how_to_add_your_feature_flag.md) - Quick
137 guide to add a new feature flag to experiment your feature.
Dimitri Glazkov2070775d2017-10-24 17:47:02138* [Guidelines for considering branch dates in project planning](release_branch_guidance.md) -
139 What to do (and not to do) around branch dates when scheduling your project
140 work.
justincarlson90a1c8c2017-04-14 00:34:25141
142### Testing
143* [Running and Debugging Layout Tests](testing/layout_tests.md)
144* [Writing Layout Tests](testing/writing_layout_tests.md) - Layout Tests using
145 `content_shell`
146* [Layout Test Expectations and Baselines](testing/layout_test_expectations.md) -
147 Setting expected results of layout tests.
148* [Layout Tests Tips](testing/layout_tests_tips.md) - Best practices for Layout
149 Tests
150* [Layout Tests with Manual Fallback](testing/layout_tests_with_manual_fallback.md) -
151 Writing tests that simulate manual interventions
152* [Extending the Layout Test Framework](how_to_extend_layout_test_framework.md)
153* [Fixing Layout Test Flakiness](testing/identifying_tests_that_depend_on_order.md) -
154 Diagnosing and fixing layout test flakiness due to ordering dependencies.
155* [Running Layout Tests using `content_shell`](testing/layout_tests_in_content_shell.md) -
156 Running layout tests by hand.
157* [Testing Browser Dialogs](testing/test_browser_dialog.md) - Using
158 TestBrowserDialog
159* [Web Platform Tests](testing/web_platform_tests.md) - Shared tests across
160 browser vendors
161* [Using Breakpad with `content_shell`](testing/using_breakpad_with_content_shell.md) -
162 Capture stack traces on layout test crashes without an attached debugger
163* [Test Descriptions](test_descriptions.md) - Unit test targets that can be
164 built, with associated desciptions.
165* [IPC Fuzzer](ipc_fuzzer.md) - Fuzz testing of Chromium IPC interfaces.
166
167### Misc Linux-Specific Docs
168* [Linux Proxy Config](linux_proxy_config.md) - Network proxy sources on Linux
169* [Debugging SSL on Linux](linux_debugging_ssl.md) - Tips on debugging SSL
170 code in Linux
171* [Linux Cert Managment](linux_cert_management.md) - Managing X.509
172 Certificates in Linux
173* [Tips for Debugging on Linux](linux_debugging.md)
174* [Linux GTK Theme Integration](linux_gtk_theme_integration.md) - Having
175 Chrome match the GTK+ theme.
176* [Gtk vs ViewsGtk](gtk_vs_views_gtk.md) - Notes on when to use Gtk vs
177 ViewsGtk
178* [Browser Plugins on Linux](linux_plugins.md) - A collection of links to
179 information on how browser plugins work on Linux
180* [Linux Crash Dumping](linux_crash_dumping.md) - How Breakpad uploads crash
181 reports to Google crash servers.
182* [Linux Minidump to Core](linux_minidump_to_core.md) - How to convert a
183 Breakpad-generated minidump files to a core file readable by most debuggersx
184* [Linux Sandbox IPC](linux_sandbox_ipc.md) - The lower level UPC system used
185 to route requests from the bottom of the call stack up into the browser.
186* [Linux Dev Build as Default Browser](linux_dev_build_as_default_browser.md) -
187 How to configure a Dev build of Chrome as the default browser in Linux.
188* [Linux Chromium Packages](linux_chromium_packages.md) - Packages of Chromium
189 browser (not Chrome) provided by some Linux distributions.
190* [`seccomp` Sandbox Crash Dumping](seccomp_sandbox_crash_dumping.md) - Notes
191 on crash dumping a process running in a seccomp sandbox.
192* [Linux Password Storage](linux_password_storage.md) - Keychain integrations
193 between Chromium and Linux.
194* [Linux Sublime Development](linux_sublime_dev.md) - Using Sublime as an IDE
195 for Chromium development on Linux.
196* [Building and Debugging GTK](linux_building_debug_gtk.md) - Building
197 Chromium against GTK using lower optimization levels and/or more debugging
198 symbols.
199* [Debugging GTK](linux_debugging_gtk.md) - Using the GTK Debug packages and
200 related tools.
201* [Chroot Notes](using_a_linux_chroot.md) - Setting up a chroot to work around
202 libfreetype differences in some versions of Linux.
203* [Linux Sandboxing](linux_sandboxing.md) - The Linux multi-process model to
204 isolate browser components with different privileges.
205* [Zygote Process](linux_zygote.md) - How the Linux Zygote process, used to
206 spawn new processes, works.
207* [Running Layout Tests on Linux](layout_tests_linux.md) - Linux-specific
208 instructions for running layout tests.
209* [Linux Sysroot Images](linux_sysroot.md) - How builds use libraries on Linux
210* [`msttcorefonts` on Mandriva](mandriva_msttcorefonts.md) - Getting fonts
211 needed to build Chrome that are not available for Mandriva
212* [Linux Hardware Video Decoding](linux_hw_video_decode.md) - Enabling
213 hardware video decode codepaths on Linux
214
215### Misc MacOS-Specific Docs
216* [Using CCache on Mac](ccache_mac.md) - Speed up builds on Mac using ccache
217 with clang/ninja
218* [Cocoa tips and tricks](cocoa_tips_and_tricks.md) - A collection of idioms
219 used when writing Cocoa views and controllers
220* [MacViews Release Plan](ui/views/macviews_release.md)
221
222### Misc Windows-Specific Docs
223* [Handling cygwin rebaseall failures](cygwin_dll_remapping_failure.md)
224* [Hacking on ANGLE in Chromium](angle_in_chromium.md) - OpenGL ES 2.0 built
225 on top of DirectX
226* [Retrieveing Code Analysis Warnings](retrieving_code_analysis_warnings.md) -
227 How to retrieve and summarize the warnings generated by Microsoft VC++'s
228 `/analyze` compile option.
229* [Windows Split DLLs](windows_split_dll.md) - Splitting `chrome.dll` into
230 multiple dlls to work around toolchain limitations on Windows.
231
232### Misc Android-Specific Docs
233* [Google Play Services in Chrome for Android](google_play_services.md)
234* [Accessing C++ Enums in Java](android_accessing_cpp_enums_in_java.md) - How
235 to use C++-defined enums in Java code
236* [Profiling Content Shell on Android](profiling_content_shell_on_android.md) -
237 Setting up profiling for `content_shell` on Android
238* [Working Remotely with Android](working_remotely_with_android.md) - Building
239 on a remote machine for an Android device connected to your local machine
240* [Using FindBugs for Android](use_find_bugs_for_android.md) - Using the open
241 source static analysis tool findbugs on the Java code.
242* [Android Test Instructions](android_test_instructions.md) - Running a build
243 on an Android device or emulator.
244* [Android Debugging](android_debugging_instructions.md) - Tools and tips for
245 how to debug Java and/or C/C++ code running on Android.
246* [Android Logging](android_logging.md) - How Chrome's logging API works with
247 `android.util.Log` on Android, and usage guidelines.
248* [Chromoting Android Hacking](chromoting_android_hacking.md) - Viewing the
249 logs and debugging the Chrome Remote Desktop Android client.
250
251### Misc iOS-Specific Docs
252* [Continuous Build and Test Infrastructure for Chromium for iOS](ios/infra.md)
253* [Opening links in Chrome for iOS](ios/opening_links.md) - How to have your
254 iOS app open links in Chrome.
255* [User Agent in Chrome for iOS](ios/user_agent.md) - Notes on User Agent
256 strings using Chrome for iOS.
257
258### Media
259* [Audio Focus Handling](media/audio_focus.md) - How multiple MediaSession
260 audio streams interact
261* [Autoplay of HTMLMediaElements](media/autoplay.md) - How HTMLMediaElements
262 are autoplayed.
263* [Piranha Plant](piranha_plant.md) - Future architecture of MediaStreams
264
265### Accessibility
266* [Accessibility Overview](accessibility/overview.md) - Overview of
267 accessibility concerns and approaches in Chromium.
268* [Accessibility Tests](accessibility/tests.md) - Where to find
269 accessibility-related tests in the codebase.
270* [ChromeVox on Chrome OS](accessibility/chromevox.md) - Enabling spoken
271 feedback (ChromeVox) on Chrome OS.
272* [ChromeVox on Desktop Linux](accessibility/chromevox_on_desktop_linux.md) -
273 Enabling spoken feedback (ChromeVox) on desktop Linux.
274* [BRLTTY in Chrome OS](accessibility/brltty.md) - Chrome OS integration with
275 BRLTTY to support refreshable braille displays
276* [PATTS on Chrome OS](accessibility/patts.md) - Notes on the PATTS speech
277 sythesis engine used on Chrome OS
278* [VoiceOver](ios/voiceover.md) - Using Apple's VoiceOver feature with
279 Chromium on iOS.
280
281### Memory Infrastructure Timeline Profiling (MemoryInfra)
282* [Overview](memory-infra/README.md)
283* [GPU Profiling](memory-infra/probe-gpu.md)
284* [Adding Tracing to a Component](memory-infra/adding_memory_infra_tracing.md)
285* [Enabling Startup Tracing](memory-infra/memory_infra_startup_tracing.md)
286* [Memory Usage in CC](memory-infra/probe-cc.md)
287* [Memory Benchmarks](memory-infra/memory_benchmarks.md)
288* [Heap Profiling](memory-infra/heap_profiler.md)
289* [Heap Profiling Internals](memory-infra/heap_profiler_internals.md)
290
291### Misc
292* [Useful URLs](useful_urls.md) - A collection of links to various tools and
293 dashboards
294* [ERC IRC](erc_irc.md) - Using ERC in EMACS to access IRC
295* [Kiosk Mode](kiosk_mode.md) - Simulating kiosk mode.
296* [User Handle Mapping](user_handle_mapping.md) - Names of developers across
297 Chromium/IRC/Google
298* [Documentation Best Practices](documentation_best_practices.md)
299* [Documentation Guidelines](documentation_guidelines.md)
300* [Shift-Based Development](shift_based_development.md) - An experiment in
301 handing off development of coordinated work between developers in different
302 time zones.
303* [Chromium Browser vs Google Chrome](chromium_browser_vs_google_chrome.md) -
304 What's the difference between _Chromium Browser_ and _Google Chrome_?
305* [Proxy Auto Config using WPAD](proxy_auto_config.md) - How WPAD servers are
306 used to automatically set proxy settings.
307* [Installing Chromium OS on VMWare](installation_at_vmware.md) - How to
308 install Chromium OS on VMWare.
Steve Kobes22fb19c2017-07-05 21:49:08309* [User Data Directory](user_data_dir.md) - How the user data and cache
310 directories are determined on all platforms.
justincarlson90a1c8c2017-04-14 00:34:25311
312### Probably Obsolete
313* [Old ChromeOS build instructions](old_chromeos_build_instructions.md)
314* [TPM Quick Reference](tpm_quick_ref.md) - Trusted Platform Module notes.
315* [System Hardening Features](system_hardening_features.md) - A list of
316 current and planned Chrome OS security features.
317* [Browser View Resizer](browser_view_resizer.md) - Design doc for making
318 browser window resizing easier on Windows.
319* [WebView Policies](webview_policies.md)
320* [Linux Profiling](linux_profiling.md) - How to profile Chromium on Linux
321* [Linux Graphics Pipeline](linux_graphics_pipeline.md)
322* [Linux `SUID` Sandbox](linux_suid_sandbox.md) - Sandboxing renderers using a
323 SUID binary on Linux
324* [Linux `SUID` Sandbox Development](linux_suid_sandbox_development.md) -
325 Development on the above system.
326* [Linux PID Namespace Support](linux_pid_namespace_support.md)
327* [Vanilla msysgit workflow](vanilla_msysgit_workflow.md) - A workflow for
328 using mostly vanilla git on Windows.
329* [Old Chromoting Build Instructions](old_chromoting_build_instructions.md)
330* [Old Options](chrome_settings.md) - Pre-Material Design chrome://settings
331 notes.