mac: Add color chooser dialog

This commit is contained in:
Cheng Zhao 2014-10-31 22:53:15 +08:00
parent a4a390b2cc
commit 14c9a2a087
6 changed files with 202 additions and 2 deletions

View file

@ -0,0 +1,26 @@
// Copyright (c) 2012 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_UI_BROWSER_DIALOGS_H_
#define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/native_widget_types.h"
class SkBitmap;
namespace content {
class ColorChooser;
class WebContents;
}
namespace chrome {
// Shows a color chooser that reports to the given WebContents.
content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
SkColor initial_color);
} // namespace chrome
#endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_