Rename components/app_modal to components/javascript_dialogs

The code in this component is unique to javascript dialogs, and does
not cover all app modals. Further, it has some view code that isn't
specifically for app modal javascript dialogs, but is re-used for tab
modals. Some tab modal code from //chrome will be moved here soon, so
rename from app_modal to javascript_dialogs. Class names reflect whether
their use is specific to the app modal control flow.

Also, rename some classes to better reflect their roles:

. JavaScriptDialogManager (implements content::JavaScriptDialogManager)
  => AppModalDialogManager

. JavaScriptAppModalDialog => AppModalDialogController

. NativeAppModalDialog => AppModalDialogView

etc.

Bug: 1025256
Change-Id: I0a1865ec71897ae6549184bc317ede29cc56438a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031936
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Commit-Queue: Evan Stade <[email protected]>
Cr-Commit-Position: refs/heads/master@{#737355}
diff --git a/chrome/browser/DEPS b/chrome/browser/DEPS
index 42ad8f4..afa2773 100644
--- a/chrome/browser/DEPS
+++ b/chrome/browser/DEPS
@@ -27,7 +27,6 @@
   "+chromeos",
   "+components/about_ui",
   "+components/account_id",
-  "+components/app_modal",
   "+components/arc",
   "+components/assist_ranker",
   "+components/autofill_assistant/browser",
@@ -122,6 +121,7 @@
   "+components/infobars/core",
   "+components/invalidation/impl",
   "+components/invalidation/public",
+  "+components/javascript_dialogs",
   "+components/keep_alive_registry",
   "+components/keyed_service/content",
   "+components/keyed_service/core",