#include "chrome/browser/ui/views/sharing_hub/screenshot/screenshot_captured_bubble.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/containers/span.h"
#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/strcat.h"
#include "base/task/thread_pool.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/image_editor/image_editor_component_info.h"
#include "chrome/browser/image_editor/screenshot_flow.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/download_request_utils.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/webui/web_ui_util.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/table_layout_view.h"
#include "ui/views/view.h"
namespace {
constexpr int kImageWidthPx = …;
constexpr int kImageHeightPx = …;
}
namespace sharing_hub {
ScreenshotCapturedBubble::ScreenshotCapturedBubble(
views::View* anchor_view,
content::WebContents* web_contents,
const gfx::Image& image,
Profile* profile)
: … { … }
ScreenshotCapturedBubble::~ScreenshotCapturedBubble() = default;
void ScreenshotCapturedBubble::OnThemeChanged() { … }
void ScreenshotCapturedBubble::Show() { … }
views::View* ScreenshotCapturedBubble::GetInitiallyFocusedView() { … }
bool ScreenshotCapturedBubble::ShouldShowCloseButton() const { … }
void ScreenshotCapturedBubble::WindowClosing() { … }
void ScreenshotCapturedBubble::Init() { … }
const std::u16string ScreenshotCapturedBubble::GetFilenameForURL(
const GURL& url) { … }
void ScreenshotCapturedBubble::DownloadButtonPressed() { … }
gfx::Size ScreenshotCapturedBubble::GetImageSize() { … }
BEGIN_METADATA(…)
}