-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port Ash tablet-mode rendering to Lacros
Moves the code that sets mobile-like Blink preferences under tablet-mode to a common filepath and configures it to be compiled into Lacros. Bug: 1289495 Change-Id: Ib851333f94b49207e943817c8563c5e08e3d5411 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3614412 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Alex Yang <aycyang@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001533}
- Loading branch information
Alex Yang
authored and
Chromium LUCI CQ
committed
May 10, 2022
1 parent
61bb0e4
commit 603c721
Showing
21 changed files
with
178 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
chrome/browser/ash/chrome_content_browser_client_ash_part.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
chrome/browser/chromeos/tablet_mode/chrome_content_browser_client_tablet_mode_part.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_BROWSER_CHROMEOS_TABLET_MODE_CHROME_CONTENT_BROWSER_CLIENT_TABLET_MODE_PART_H_ | ||
#define CHROME_BROWSER_CHROMEOS_TABLET_MODE_CHROME_CONTENT_BROWSER_CLIENT_TABLET_MODE_PART_H_ | ||
|
||
#include "chrome/browser/chrome_content_browser_client_parts.h" | ||
|
||
class GURL; | ||
|
||
class ChromeContentBrowserClientTabletModePart | ||
: public ChromeContentBrowserClientParts { | ||
public: | ||
ChromeContentBrowserClientTabletModePart(); | ||
|
||
ChromeContentBrowserClientTabletModePart( | ||
const ChromeContentBrowserClientTabletModePart&) = delete; | ||
ChromeContentBrowserClientTabletModePart& operator=( | ||
const ChromeContentBrowserClientTabletModePart&) = delete; | ||
|
||
~ChromeContentBrowserClientTabletModePart() override; | ||
|
||
// ChromeContentBrowserClientParts: | ||
void OverrideWebkitPrefs(content::WebContents* web_contents, | ||
blink::web_pref::WebPreferences* web_prefs) override; | ||
|
||
#if BUILDFLAG(IS_CHROMEOS_ASH) | ||
static bool UseDefaultFontSizeForTest(const GURL& url); | ||
#endif | ||
}; | ||
|
||
#endif // CHROME_BROWSER_CHROMEOS_TABLET_MODE_CHROME_CONTENT_BROWSER_CLIENT_TABLET_MODE_PART_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.