clang-format chromium_src
This commit is contained in:
parent
c090dd2f81
commit
8cc81509d7
38 changed files with 202 additions and 231 deletions
|
@ -98,13 +98,11 @@ class CertificateManagerModel {
|
||||||
|
|
||||||
// Methods used during initialization, see the comment at the top of the .cc
|
// Methods used during initialization, see the comment at the top of the .cc
|
||||||
// file for details.
|
// file for details.
|
||||||
static void DidGetCertDBOnUIThread(
|
static void DidGetCertDBOnUIThread(net::NSSCertDatabase* cert_db,
|
||||||
net::NSSCertDatabase* cert_db,
|
bool is_user_db_available,
|
||||||
bool is_user_db_available,
|
const CreationCallback& callback);
|
||||||
const CreationCallback& callback);
|
static void DidGetCertDBOnIOThread(const CreationCallback& callback,
|
||||||
static void DidGetCertDBOnIOThread(
|
net::NSSCertDatabase* cert_db);
|
||||||
const CreationCallback& callback,
|
|
||||||
net::NSSCertDatabase* cert_db);
|
|
||||||
static void GetCertDBOnIOThread(content::ResourceContext* context,
|
static void GetCertDBOnIOThread(content::ResourceContext* context,
|
||||||
const CreationCallback& callback);
|
const CreationCallback& callback);
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,9 @@ namespace extensions {
|
||||||
// forwards its output to the base class for processing.
|
// forwards its output to the base class for processing.
|
||||||
//
|
//
|
||||||
// This class does two things:
|
// This class does two things:
|
||||||
// 1. Intercepts media/volume keys. Uses an event tap for intercepting media keys
|
// 1. Intercepts media/volume keys. Uses an event tap for intercepting media
|
||||||
// (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp, VolumeDown, VolumeMute).
|
// keys (PlayPause, NextTrack, PreviousTrack) and volume keys(VolumeUp,
|
||||||
|
// VolumeDown, VolumeMute).
|
||||||
// 2. Binds keyboard shortcuts (hot keys). Carbon RegisterEventHotKey API for
|
// 2. Binds keyboard shortcuts (hot keys). Carbon RegisterEventHotKey API for
|
||||||
// binding to non-media key global hot keys (eg. Command-Shift-1).
|
// binding to non-media key global hot keys (eg. Command-Shift-1).
|
||||||
class GlobalShortcutListenerMac : public GlobalShortcutListener {
|
class GlobalShortcutListenerMac : public GlobalShortcutListener {
|
||||||
|
@ -67,12 +68,15 @@ class GlobalShortcutListenerMac : public GlobalShortcutListener {
|
||||||
bool IsAnyHotKeyRegistered();
|
bool IsAnyHotKeyRegistered();
|
||||||
|
|
||||||
// The callback for when an event tap happens.
|
// The callback for when an event tap happens.
|
||||||
static CGEventRef EventTapCallback(
|
static CGEventRef EventTapCallback(CGEventTapProxy proxy,
|
||||||
CGEventTapProxy proxy, CGEventType type, CGEventRef event, void* refcon);
|
CGEventType type,
|
||||||
|
CGEventRef event,
|
||||||
|
void* refcon);
|
||||||
|
|
||||||
// The callback for when a hot key event happens.
|
// The callback for when a hot key event happens.
|
||||||
static OSStatus HotKeyHandler(
|
static OSStatus HotKeyHandler(EventHandlerCallRef next_handler,
|
||||||
EventHandlerCallRef next_handler, EventRef event, void* user_data);
|
EventRef event,
|
||||||
|
void* user_data);
|
||||||
|
|
||||||
// Whether this object is listening for global shortcuts.
|
// Whether this object is listening for global shortcuts.
|
||||||
bool is_listening_;
|
bool is_listening_;
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#ifndef CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
#ifndef CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
||||||
#define CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
#define CHROME_BROWSER_EXTENSIONS_GLOBAL_SHORTCUT_LISTENER_X11_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ class IconManager {
|
||||||
CacheKey(const IconLoader::IconGroup& group, IconLoader::IconSize size);
|
CacheKey(const IconLoader::IconGroup& group, IconLoader::IconSize size);
|
||||||
|
|
||||||
// Used as a key in the map below, so we need this comparator.
|
// Used as a key in the map below, so we need this comparator.
|
||||||
bool operator<(const CacheKey &other) const;
|
bool operator<(const CacheKey& other) const;
|
||||||
|
|
||||||
IconLoader::IconGroup group;
|
IconLoader::IconGroup group;
|
||||||
IconLoader::IconSize size;
|
IconLoader::IconSize size;
|
||||||
|
|
|
@ -209,9 +209,7 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> {
|
||||||
// Getters.
|
// Getters.
|
||||||
PrintedDocument* document() const;
|
PrintedDocument* document() const;
|
||||||
PrintedPage* page() const;
|
PrintedPage* page() const;
|
||||||
Type type() const {
|
Type type() const { return type_; }
|
||||||
return type_;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class base::RefCountedThreadSafe<JobEventDetails>;
|
friend class base::RefCountedThreadSafe<JobEventDetails>;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class PrintQueriesQueue : public base::RefCountedThreadSafe<PrintQueriesQueue> {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class base::RefCountedThreadSafe<PrintQueriesQueue>;
|
friend class base::RefCountedThreadSafe<PrintQueriesQueue>;
|
||||||
typedef std::vector<scoped_refptr<PrinterQuery> > PrinterQueries;
|
typedef std::vector<scoped_refptr<PrinterQuery>> PrinterQueries;
|
||||||
|
|
||||||
virtual ~PrintQueriesQueue();
|
virtual ~PrintQueriesQueue();
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class PrintJobManager : public content::NotificationObserver {
|
||||||
scoped_refptr<PrintQueriesQueue> queue();
|
scoped_refptr<PrintQueriesQueue> queue();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef std::set<scoped_refptr<PrintJob> > PrintJobs;
|
typedef std::set<scoped_refptr<PrintJob>> PrintJobs;
|
||||||
|
|
||||||
// Processes a NOTIFY_PRINT_JOB_EVENT notification.
|
// Processes a NOTIFY_PRINT_JOB_EVENT notification.
|
||||||
void OnPrintJobEvent(PrintJob* print_job,
|
void OnPrintJobEvent(PrintJob* print_job,
|
||||||
|
|
|
@ -77,8 +77,7 @@ class PrintJobWorker {
|
||||||
bool IsRunning() const;
|
bool IsRunning() const;
|
||||||
|
|
||||||
// Posts the given task to be run.
|
// Posts the given task to be run.
|
||||||
bool PostTask(const base::Location& from_here,
|
bool PostTask(const base::Location& from_here, const base::Closure& task);
|
||||||
const base::Closure& task);
|
|
||||||
|
|
||||||
// Signals the thread to exit in the near future.
|
// Signals the thread to exit in the near future.
|
||||||
void StopSoon();
|
void StopSoon();
|
||||||
|
@ -114,10 +113,9 @@ class PrintJobWorker {
|
||||||
// Asks the user for print settings. Must be called on the UI thread.
|
// Asks the user for print settings. Must be called on the UI thread.
|
||||||
// Required on Mac and Linux. Windows can display UI from non-main threads,
|
// Required on Mac and Linux. Windows can display UI from non-main threads,
|
||||||
// but sticks with this for consistency.
|
// but sticks with this for consistency.
|
||||||
void GetSettingsWithUI(
|
void GetSettingsWithUI(int document_page_count,
|
||||||
int document_page_count,
|
bool has_selection,
|
||||||
bool has_selection,
|
bool is_scripted);
|
||||||
bool is_scripted);
|
|
||||||
|
|
||||||
// Called on the UI thread to update the print settings.
|
// Called on the UI thread to update the print settings.
|
||||||
void UpdatePrintSettings(std::unique_ptr<base::DictionaryValue> new_settings);
|
void UpdatePrintSettings(std::unique_ptr<base::DictionaryValue> new_settings);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
namespace base {
|
namespace base {
|
||||||
class MessageLoop;
|
class MessageLoop;
|
||||||
class SequencedTaskRunner;
|
class SequencedTaskRunner;
|
||||||
}
|
} // namespace base
|
||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
|
||||||
|
@ -48,8 +48,7 @@ class PrintJobWorkerOwner
|
||||||
bool RunsTasksInCurrentSequence() const;
|
bool RunsTasksInCurrentSequence() const;
|
||||||
|
|
||||||
// Posts the given task to be run.
|
// Posts the given task to be run.
|
||||||
bool PostTask(const base::Location& from_here,
|
bool PostTask(const base::Location& from_here, const base::Closure& task);
|
||||||
const base::Closure& task);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class base::RefCountedThreadSafe<PrintJobWorkerOwner>;
|
friend class base::RefCountedThreadSafe<PrintJobWorkerOwner>;
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
#include "base/callback.h"
|
#include "base/callback.h"
|
||||||
#include "base/memory/ref_counted.h"
|
#include "base/memory/ref_counted.h"
|
||||||
#include "components/prefs/pref_member.h"
|
|
||||||
#include "base/strings/string16.h"
|
#include "base/strings/string16.h"
|
||||||
|
#include "components/prefs/pref_member.h"
|
||||||
#include "content/public/browser/notification_observer.h"
|
#include "content/public/browser/notification_observer.h"
|
||||||
#include "content/public/browser/notification_registrar.h"
|
#include "content/public/browser/notification_registrar.h"
|
||||||
#include "content/public/browser/web_contents_observer.h"
|
#include "content/public/browser/web_contents_observer.h"
|
||||||
|
@ -41,16 +41,15 @@ class PrintViewManagerBase : public content::NotificationObserver,
|
||||||
// asynchronous, the actual printing will not be completed on the return of
|
// asynchronous, the actual printing will not be completed on the return of
|
||||||
// this function. Returns false if printing is impossible at the moment.
|
// this function. Returns false if printing is impossible at the moment.
|
||||||
virtual bool PrintNow(content::RenderFrameHost* rfh,
|
virtual bool PrintNow(content::RenderFrameHost* rfh,
|
||||||
bool silent, bool print_background,
|
bool silent,
|
||||||
|
bool print_background,
|
||||||
const base::string16& device_name);
|
const base::string16& device_name);
|
||||||
#endif // !DISABLE_BASIC_PRINTING
|
#endif // !DISABLE_BASIC_PRINTING
|
||||||
|
|
||||||
// PrintedPagesSource implementation.
|
// PrintedPagesSource implementation.
|
||||||
base::string16 RenderSourceName();
|
base::string16 RenderSourceName();
|
||||||
|
|
||||||
void SetCallback(const base::Callback<void(bool)>& cb) {
|
void SetCallback(const base::Callback<void(bool)>& cb) { callback = cb; };
|
||||||
callback = cb;
|
|
||||||
};
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit PrintViewManagerBase(content::WebContents* web_contents);
|
explicit PrintViewManagerBase(content::WebContents* web_contents);
|
||||||
|
|
|
@ -53,17 +53,16 @@ class PrinterQuery : public PrintJobWorkerOwner {
|
||||||
bool is_modifiable,
|
bool is_modifiable,
|
||||||
const base::Closure& callback);
|
const base::Closure& callback);
|
||||||
|
|
||||||
void GetSettings(
|
void GetSettings(GetSettingsAskParam ask_user_for_settings,
|
||||||
GetSettingsAskParam ask_user_for_settings,
|
int expected_page_count,
|
||||||
int expected_page_count,
|
bool has_selection,
|
||||||
bool has_selection,
|
MarginType margin_type,
|
||||||
MarginType margin_type,
|
bool is_scripted,
|
||||||
bool is_scripted,
|
bool is_modifiable,
|
||||||
bool is_modifiable,
|
const base::string16& device_name,
|
||||||
const base::string16& device_name,
|
const base::Closure& callback);
|
||||||
const base::Closure& callback);
|
|
||||||
|
|
||||||
// Updates the current settings with |new_settings| dictionary values.
|
// Updates the current settings with |new_settings| dictionary values.
|
||||||
void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings,
|
void SetSettings(std::unique_ptr<base::DictionaryValue> new_settings,
|
||||||
const base::Closure& callback);
|
const base::Closure& callback);
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ struct PrintHostMsg_ScriptedPrint_Params;
|
||||||
namespace base {
|
namespace base {
|
||||||
class DictionaryValue;
|
class DictionaryValue;
|
||||||
class FilePath;
|
class FilePath;
|
||||||
}
|
} // namespace base
|
||||||
|
|
||||||
namespace content {
|
namespace content {
|
||||||
class WebContents;
|
class WebContents;
|
||||||
|
@ -33,9 +33,8 @@ class PrintingMessageFilter : public content::BrowserMessageFilter {
|
||||||
PrintingMessageFilter(int render_process_id);
|
PrintingMessageFilter(int render_process_id);
|
||||||
|
|
||||||
// content::BrowserMessageFilter methods.
|
// content::BrowserMessageFilter methods.
|
||||||
void OverrideThreadForMessage(
|
void OverrideThreadForMessage(const IPC::Message& message,
|
||||||
const IPC::Message& message,
|
content::BrowserThread::ID* thread) override;
|
||||||
content::BrowserThread::ID* thread) override;
|
|
||||||
bool OnMessageReceived(const IPC::Message& message) override;
|
bool OnMessageReceived(const IPC::Message& message) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -127,7 +127,7 @@ class ProcessSingleton {
|
||||||
NotificationCallback notification_callback_; // Handler for notifications.
|
NotificationCallback notification_callback_; // Handler for notifications.
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
HWND remote_window_; // The HWND_MESSAGE of another browser.
|
HWND remote_window_; // The HWND_MESSAGE of another browser.
|
||||||
base::win::MessageWindow window_; // The message-only window.
|
base::win::MessageWindow window_; // The message-only window.
|
||||||
bool is_virtualized_; // Stuck inside Microsoft Softricity VM environment.
|
bool is_virtualized_; // Stuck inside Microsoft Softricity VM environment.
|
||||||
HANDLE lock_file_;
|
HANDLE lock_file_;
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace ppapi {
|
||||||
namespace host {
|
namespace host {
|
||||||
struct HostMessageContext;
|
struct HostMessageContext;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
namespace chrome {
|
namespace chrome {
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Time;
|
||||||
namespace content {
|
namespace content {
|
||||||
class BrowserPpapiHost;
|
class BrowserPpapiHost;
|
||||||
class ResourceContext;
|
class ResourceContext;
|
||||||
}
|
} // namespace content
|
||||||
|
|
||||||
class GURL;
|
class GURL;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace ppapi {
|
||||||
namespace host {
|
namespace host {
|
||||||
struct HostMessageContext;
|
struct HostMessageContext;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
class ScopedClipboardWriter;
|
class ScopedClipboardWriter;
|
||||||
|
|
|
@ -16,7 +16,7 @@ class BrowserContext;
|
||||||
class WidevineCdmMessageFilter : public content::BrowserMessageFilter {
|
class WidevineCdmMessageFilter : public content::BrowserMessageFilter {
|
||||||
public:
|
public:
|
||||||
explicit WidevineCdmMessageFilter(int render_process_id,
|
explicit WidevineCdmMessageFilter(int render_process_id,
|
||||||
content::BrowserContext* browser_context);
|
content::BrowserContext* browser_context);
|
||||||
bool OnMessageReceived(const IPC::Message& message) override;
|
bool OnMessageReceived(const IPC::Message& message) override;
|
||||||
void OnDestruct() const override;
|
void OnDestruct() const override;
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,7 @@ enum TtsEventType {
|
||||||
TTS_EVENT_RESUME
|
TTS_EVENT_RESUME
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TtsGenderType {
|
enum TtsGenderType { TTS_GENDER_NONE, TTS_GENDER_MALE, TTS_GENDER_FEMALE };
|
||||||
TTS_GENDER_NONE,
|
|
||||||
TTS_GENDER_MALE,
|
|
||||||
TTS_GENDER_FEMALE
|
|
||||||
};
|
|
||||||
|
|
||||||
// Returns true if this event type is one that indicates an utterance
|
// Returns true if this event type is one that indicates an utterance
|
||||||
// is finished and can be destroyed.
|
// is finished and can be destroyed.
|
||||||
|
@ -167,14 +163,10 @@ class Utterance {
|
||||||
}
|
}
|
||||||
const std::string& voice_name() const { return voice_name_; }
|
const std::string& voice_name() const { return voice_name_; }
|
||||||
|
|
||||||
void set_lang(const std::string& lang) {
|
void set_lang(const std::string& lang) { lang_ = lang; }
|
||||||
lang_ = lang;
|
|
||||||
}
|
|
||||||
const std::string& lang() const { return lang_; }
|
const std::string& lang() const { return lang_; }
|
||||||
|
|
||||||
void set_gender(TtsGenderType gender) {
|
void set_gender(TtsGenderType gender) { gender_ = gender; }
|
||||||
gender_ = gender;
|
|
||||||
}
|
|
||||||
TtsGenderType gender() const { return gender_; }
|
TtsGenderType gender() const { return gender_; }
|
||||||
|
|
||||||
void set_continuous_parameters(const UtteranceContinuousParameters& params) {
|
void set_continuous_parameters(const UtteranceContinuousParameters& params) {
|
||||||
|
|
|
@ -35,9 +35,9 @@ class TtsControllerImpl : public TtsController {
|
||||||
virtual void Pause() override;
|
virtual void Pause() override;
|
||||||
virtual void Resume() override;
|
virtual void Resume() override;
|
||||||
virtual void OnTtsEvent(int utterance_id,
|
virtual void OnTtsEvent(int utterance_id,
|
||||||
TtsEventType event_type,
|
TtsEventType event_type,
|
||||||
int char_index,
|
int char_index,
|
||||||
const std::string& error_message) override;
|
const std::string& error_message) override;
|
||||||
virtual void GetVoices(content::BrowserContext* browser_context,
|
virtual void GetVoices(content::BrowserContext* browser_context,
|
||||||
std::vector<VoiceData>* out_voices) override;
|
std::vector<VoiceData>* out_voices) override;
|
||||||
virtual void VoicesChanged() override;
|
virtual void VoicesChanged() override;
|
||||||
|
|
|
@ -14,18 +14,16 @@ namespace content {
|
||||||
class BrowserContext;
|
class BrowserContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
class TtsMessageFilter
|
class TtsMessageFilter : public content::BrowserMessageFilter,
|
||||||
: public content::BrowserMessageFilter,
|
public UtteranceEventDelegate,
|
||||||
public UtteranceEventDelegate,
|
public VoicesChangedDelegate {
|
||||||
public VoicesChangedDelegate {
|
|
||||||
public:
|
public:
|
||||||
explicit TtsMessageFilter(int render_process_id,
|
explicit TtsMessageFilter(int render_process_id,
|
||||||
content::BrowserContext* browser_context);
|
content::BrowserContext* browser_context);
|
||||||
|
|
||||||
// content::BrowserMessageFilter implementation.
|
// content::BrowserMessageFilter implementation.
|
||||||
void OverrideThreadForMessage(
|
void OverrideThreadForMessage(const IPC::Message& message,
|
||||||
const IPC::Message& message,
|
content::BrowserThread::ID* thread) override;
|
||||||
content::BrowserThread::ID* thread) override;
|
|
||||||
bool OnMessageReceived(const IPC::Message& message) override;
|
bool OnMessageReceived(const IPC::Message& message) override;
|
||||||
void OnChannelClosing() override;
|
void OnChannelClosing() override;
|
||||||
void OnDestruct() const override;
|
void OnDestruct() const override;
|
||||||
|
|
|
@ -33,12 +33,11 @@ class TtsPlatformImpl {
|
||||||
// The TtsController will only try to speak one utterance at
|
// The TtsController will only try to speak one utterance at
|
||||||
// a time. If it wants to interrupt speech, it will always call Stop
|
// a time. If it wants to interrupt speech, it will always call Stop
|
||||||
// before speaking again.
|
// before speaking again.
|
||||||
virtual bool Speak(
|
virtual bool Speak(int utterance_id,
|
||||||
int utterance_id,
|
const std::string& utterance,
|
||||||
const std::string& utterance,
|
const std::string& lang,
|
||||||
const std::string& lang,
|
const VoiceData& voice,
|
||||||
const VoiceData& voice,
|
const UtteranceContinuousParameters& params) = 0;
|
||||||
const UtteranceContinuousParameters& params) = 0;
|
|
||||||
|
|
||||||
// Stop speaking immediately and return true on success.
|
// Stop speaking immediately and return true on success.
|
||||||
virtual bool StopSpeaking() = 0;
|
virtual bool StopSpeaking() = 0;
|
||||||
|
|
|
@ -27,8 +27,7 @@ class SecurityStateTabHelper
|
||||||
~SecurityStateTabHelper() override;
|
~SecurityStateTabHelper() override;
|
||||||
|
|
||||||
// See security_state::GetSecurityInfo.
|
// See security_state::GetSecurityInfo.
|
||||||
void GetSecurityInfo(
|
void GetSecurityInfo(security_state::SecurityInfo* result) const;
|
||||||
security_state::SecurityInfo* result) const;
|
|
||||||
|
|
||||||
// Called when the NavigationEntry's SSLStatus or other security
|
// Called when the NavigationEntry's SSLStatus or other security
|
||||||
// information changes.
|
// information changes.
|
||||||
|
|
|
@ -13,7 +13,7 @@ class SkBitmap;
|
||||||
namespace content {
|
namespace content {
|
||||||
class ColorChooser;
|
class ColorChooser;
|
||||||
class WebContents;
|
class WebContents;
|
||||||
}
|
} // namespace content
|
||||||
|
|
||||||
namespace chrome {
|
namespace chrome {
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class WebContents;
|
||||||
namespace views {
|
namespace views {
|
||||||
class ColorChooserView;
|
class ColorChooserView;
|
||||||
class Widget;
|
class Widget;
|
||||||
}
|
} // namespace views
|
||||||
|
|
||||||
// TODO(mukai): rename this as -Ash and move to c/b/ui/ash after Linux-aura
|
// TODO(mukai): rename this as -Ash and move to c/b/ui/ash after Linux-aura
|
||||||
// switches to its native color chooser.
|
// switches to its native color chooser.
|
||||||
|
|
|
@ -36,10 +36,16 @@ class GlobalMenuBarRegistrarX11 {
|
||||||
void RegisterXID(unsigned long xid);
|
void RegisterXID(unsigned long xid);
|
||||||
void UnregisterXID(unsigned long xid);
|
void UnregisterXID(unsigned long xid);
|
||||||
|
|
||||||
CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11, void, OnProxyCreated,
|
CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11,
|
||||||
GObject*, GAsyncResult*);
|
void,
|
||||||
CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11, void, OnNameOwnerChanged,
|
OnProxyCreated,
|
||||||
GObject*, GParamSpec*);
|
GObject*,
|
||||||
|
GAsyncResult*);
|
||||||
|
CHROMEG_CALLBACK_1(GlobalMenuBarRegistrarX11,
|
||||||
|
void,
|
||||||
|
OnNameOwnerChanged,
|
||||||
|
GObject*,
|
||||||
|
GParamSpec*);
|
||||||
|
|
||||||
GDBusProxy* registrar_proxy_;
|
GDBusProxy* registrar_proxy_;
|
||||||
|
|
||||||
|
|
|
@ -19,36 +19,36 @@ namespace chrome {
|
||||||
enum {
|
enum {
|
||||||
PATH_START = 1000,
|
PATH_START = 1000,
|
||||||
|
|
||||||
DIR_APP = PATH_START, // Directory where dlls and data reside.
|
DIR_APP = PATH_START, // Directory where dlls and data reside.
|
||||||
DIR_LOGS, // Directory where logs should be written.
|
DIR_LOGS, // Directory where logs should be written.
|
||||||
DIR_USER_DATA, // Directory where user data can be written.
|
DIR_USER_DATA, // Directory where user data can be written.
|
||||||
DIR_CRASH_DUMPS, // Directory where crash dumps are written.
|
DIR_CRASH_DUMPS, // Directory where crash dumps are written.
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
DIR_WATCHER_DATA, // Directory where the Chrome watcher stores
|
DIR_WATCHER_DATA, // Directory where the Chrome watcher stores
|
||||||
// data.
|
// data.
|
||||||
#endif
|
#endif
|
||||||
DIR_RESOURCES, // Directory containing separate file resources
|
DIR_RESOURCES, // Directory containing separate file resources
|
||||||
// used by Chrome at runtime.
|
// used by Chrome at runtime.
|
||||||
DIR_INSPECTOR, // Directory where web inspector is located.
|
DIR_INSPECTOR, // Directory where web inspector is located.
|
||||||
DIR_APP_DICTIONARIES, // Directory where the global dictionaries are.
|
DIR_APP_DICTIONARIES, // Directory where the global dictionaries are.
|
||||||
DIR_USER_DOCUMENTS, // Directory for a user's "My Documents".
|
DIR_USER_DOCUMENTS, // Directory for a user's "My Documents".
|
||||||
DIR_USER_MUSIC, // Directory for a user's music.
|
DIR_USER_MUSIC, // Directory for a user's music.
|
||||||
DIR_USER_PICTURES, // Directory for a user's pictures.
|
DIR_USER_PICTURES, // Directory for a user's pictures.
|
||||||
DIR_USER_VIDEOS, // Directory for a user's videos.
|
DIR_USER_VIDEOS, // Directory for a user's videos.
|
||||||
DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's
|
DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's
|
||||||
// "My Documents/Downloads", (Windows) or
|
// "My Documents/Downloads", (Windows) or
|
||||||
// "Downloads". (Linux)
|
// "Downloads". (Linux)
|
||||||
DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads.
|
DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads.
|
||||||
DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside.
|
DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside.
|
||||||
#if defined(OS_POSIX) && !defined(OS_MACOSX)
|
#if defined(OS_POSIX) && !defined(OS_MACOSX)
|
||||||
DIR_POLICY_FILES, // Directory for system-wide read-only
|
DIR_POLICY_FILES, // Directory for system-wide read-only
|
||||||
// policy files that allow sys-admins
|
// policy files that allow sys-admins
|
||||||
// to set policies for chrome. This directory
|
// to set policies for chrome. This directory
|
||||||
// contains subdirectories.
|
// contains subdirectories.
|
||||||
#endif
|
#endif
|
||||||
#if defined(OS_MACOSX) && !defined(OS_IOS)
|
#if defined(OS_MACOSX) && !defined(OS_IOS)
|
||||||
DIR_USER_APPLICATIONS, // ~/Applications
|
DIR_USER_APPLICATIONS, // ~/Applications
|
||||||
DIR_USER_LIBRARY, // ~/Library
|
DIR_USER_LIBRARY, // ~/Library
|
||||||
#endif
|
#endif
|
||||||
#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \
|
#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \
|
||||||
(defined(OS_MACOSX) && !defined(OS_IOS))
|
(defined(OS_MACOSX) && !defined(OS_IOS))
|
||||||
|
@ -65,47 +65,47 @@ enum {
|
||||||
// describe extensions which are to be
|
// describe extensions which are to be
|
||||||
// installed when chrome is run.
|
// installed when chrome is run.
|
||||||
#endif
|
#endif
|
||||||
DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files.
|
DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files.
|
||||||
|
|
||||||
DIR_DEFAULT_APPS, // Directory where installer places .crx files
|
DIR_DEFAULT_APPS, // Directory where installer places .crx files
|
||||||
// to be installed when chrome is first run.
|
// to be installed when chrome is first run.
|
||||||
DIR_PEPPER_FLASH_PLUGIN, // Directory to the bundled Pepper Flash plugin,
|
DIR_PEPPER_FLASH_PLUGIN, // Directory to the bundled Pepper Flash plugin,
|
||||||
// containing the plugin and the manifest.
|
// containing the plugin and the manifest.
|
||||||
DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN, // Base directory of the Pepper
|
DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN, // Base directory of the Pepper
|
||||||
// Flash plugins downloaded by the
|
// Flash plugins downloaded by the
|
||||||
// component updater.
|
// component updater.
|
||||||
FILE_RESOURCE_MODULE, // Full path and filename of the module that
|
FILE_RESOURCE_MODULE, // Full path and filename of the module that
|
||||||
// contains embedded resources (version,
|
// contains embedded resources (version,
|
||||||
// strings, images, etc.).
|
// strings, images, etc.).
|
||||||
FILE_LOCAL_STATE, // Path and filename to the file in which
|
FILE_LOCAL_STATE, // Path and filename to the file in which
|
||||||
// machine/installation-specific state is saved.
|
// machine/installation-specific state is saved.
|
||||||
FILE_RECORDED_SCRIPT, // Full path to the script.log file that
|
FILE_RECORDED_SCRIPT, // Full path to the script.log file that
|
||||||
// contains recorded browser events for
|
// contains recorded browser events for
|
||||||
// playback.
|
// playback.
|
||||||
FILE_PEPPER_FLASH_PLUGIN, // Full path to the bundled Pepper Flash plugin
|
FILE_PEPPER_FLASH_PLUGIN, // Full path to the bundled Pepper Flash plugin
|
||||||
// file.
|
// file.
|
||||||
FILE_PEPPER_FLASH_SYSTEM_PLUGIN, // Full path to the system version of the
|
FILE_PEPPER_FLASH_SYSTEM_PLUGIN, // Full path to the system version of the
|
||||||
// Pepper Flash plugin, downloadable from
|
// Pepper Flash plugin, downloadable from
|
||||||
// Adobe website. Querying this path might
|
// Adobe website. Querying this path might
|
||||||
// succeed no matter the file exists or not.
|
// succeed no matter the file exists or not.
|
||||||
FILE_FLASH_SYSTEM_PLUGIN, // Full path to the system version of NPAPI
|
FILE_FLASH_SYSTEM_PLUGIN, // Full path to the system version of NPAPI
|
||||||
// Flash plugin, downloadable from Adobe
|
// Flash plugin, downloadable from Adobe
|
||||||
// website. Querying this path might succeed no
|
// website. Querying this path might succeed no
|
||||||
// matter the file exists or not.
|
// matter the file exists or not.
|
||||||
FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file.
|
FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file.
|
||||||
DIR_PNACL_BASE, // Full path to the base dir for PNaCl.
|
DIR_PNACL_BASE, // Full path to the base dir for PNaCl.
|
||||||
DIR_PNACL_COMPONENT, // Full path to the latest PNaCl version
|
DIR_PNACL_COMPONENT, // Full path to the latest PNaCl version
|
||||||
// (subdir of DIR_PNACL_BASE).
|
// (subdir of DIR_PNACL_BASE).
|
||||||
DIR_COMPONENT_WIDEVINE_CDM, // Directory that contains component-updated
|
DIR_COMPONENT_WIDEVINE_CDM, // Directory that contains component-updated
|
||||||
// Widevine CDM files.
|
// Widevine CDM files.
|
||||||
FILE_WIDEVINE_CDM_ADAPTER, // Full path to the Widevine CDM adapter file.
|
FILE_WIDEVINE_CDM_ADAPTER, // Full path to the Widevine CDM adapter file.
|
||||||
FILE_RESOURCES_PACK, // Full path to the .pak file containing
|
FILE_RESOURCES_PACK, // Full path to the .pak file containing
|
||||||
// binary data (e.g., html files and images
|
// binary data (e.g., html files and images
|
||||||
// used by internal pages).
|
// used by internal pages).
|
||||||
DIR_RESOURCES_EXTENSION, // Full path to extension resources.
|
DIR_RESOURCES_EXTENSION, // Full path to extension resources.
|
||||||
#if defined(OS_CHROMEOS)
|
#if defined(OS_CHROMEOS)
|
||||||
DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos
|
DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos
|
||||||
// wallpapers reside.
|
// wallpapers reside.
|
||||||
DIR_CHROMEOS_WALLPAPER_THUMBNAILS, // Directory where downloaded chromeos
|
DIR_CHROMEOS_WALLPAPER_THUMBNAILS, // Directory where downloaded chromeos
|
||||||
// wallpaper thumbnails reside.
|
// wallpaper thumbnails reside.
|
||||||
DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers
|
DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers
|
||||||
|
@ -118,24 +118,24 @@ enum {
|
||||||
// supervised user whitelists are
|
// supervised user whitelists are
|
||||||
// installed.
|
// installed.
|
||||||
#if defined(OS_LINUX) || (defined(OS_MACOSX) && !defined(OS_IOS))
|
#if defined(OS_LINUX) || (defined(OS_MACOSX) && !defined(OS_IOS))
|
||||||
DIR_NATIVE_MESSAGING, // System directory where native messaging host
|
DIR_NATIVE_MESSAGING, // System directory where native messaging host
|
||||||
// manifest files are stored.
|
// manifest files are stored.
|
||||||
DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts
|
DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts
|
||||||
// installed per-user.
|
// installed per-user.
|
||||||
#endif
|
#endif
|
||||||
#if !defined(OS_ANDROID)
|
#if !defined(OS_ANDROID)
|
||||||
DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance
|
DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance
|
||||||
// stores its data.
|
// stores its data.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Valid only in development environment; TODO(darin): move these
|
// Valid only in development environment; TODO(darin): move these
|
||||||
DIR_GEN_TEST_DATA, // Directory where generated test data resides.
|
DIR_GEN_TEST_DATA, // Directory where generated test data resides.
|
||||||
DIR_TEST_DATA, // Directory where unit test data resides.
|
DIR_TEST_DATA, // Directory where unit test data resides.
|
||||||
DIR_TEST_TOOLS, // Directory where unit test tools reside.
|
DIR_TEST_TOOLS, // Directory where unit test tools reside.
|
||||||
#if defined(OS_LINUX)
|
#if defined(OS_LINUX)
|
||||||
FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to
|
FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to
|
||||||
// the component updated flash plugin.
|
// the component updated flash plugin.
|
||||||
#endif // defined(OS_LINUX)
|
#endif // defined(OS_LINUX)
|
||||||
|
|
||||||
PATH_END
|
PATH_END
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,7 +34,8 @@ bool GetDefaultUserDataDirectory(base::FilePath* result);
|
||||||
// of this directory, with names like "Cache" and "Media Cache".
|
// of this directory, with names like "Cache" and "Media Cache".
|
||||||
// This will always fill in |result| with a directory, sometimes
|
// This will always fill in |result| with a directory, sometimes
|
||||||
// just |profile_dir|.
|
// just |profile_dir|.
|
||||||
void GetUserCacheDirectory(const base::FilePath& profile_dir, base::FilePath* result);
|
void GetUserCacheDirectory(const base::FilePath& profile_dir,
|
||||||
|
base::FilePath* result);
|
||||||
|
|
||||||
// Get the path to the user's documents directory.
|
// Get the path to the user's documents directory.
|
||||||
bool GetUserDocumentsDirectory(base::FilePath* result);
|
bool GetUserDocumentsDirectory(base::FilePath* result);
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "printing/page_size_margins.h"
|
#include "printing/page_size_margins.h"
|
||||||
#include "printing/print_job_constants.h"
|
#include "printing/print_job_constants.h"
|
||||||
#include "third_party/WebKit/public/web/WebPrintScalingOption.h"
|
#include "third_party/WebKit/public/web/WebPrintScalingOption.h"
|
||||||
#include "ui/gfx/native_widget_types.h"
|
|
||||||
#include "ui/gfx/geometry/rect.h"
|
#include "ui/gfx/geometry/rect.h"
|
||||||
|
#include "ui/gfx/native_widget_types.h"
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
#include "ipc/ipc_platform_file.h"
|
#include "ipc/ipc_platform_file.h"
|
||||||
|
@ -71,8 +71,7 @@ struct PrintMsg_PrintPages_Params {
|
||||||
|
|
||||||
#define IPC_MESSAGE_START PrintMsgStart
|
#define IPC_MESSAGE_START PrintMsgStart
|
||||||
|
|
||||||
IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
|
IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType, printing::MARGIN_TYPE_LAST)
|
||||||
printing::MARGIN_TYPE_LAST)
|
|
||||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
|
IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
|
||||||
printing::UNKNOWN_DUPLEX_MODE,
|
printing::UNKNOWN_DUPLEX_MODE,
|
||||||
printing::SHORT_EDGE)
|
printing::SHORT_EDGE)
|
||||||
|
@ -224,7 +223,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewDocument_Params)
|
||||||
IPC_STRUCT_MEMBER(int, preview_request_id)
|
IPC_STRUCT_MEMBER(int, preview_request_id)
|
||||||
IPC_STRUCT_END()
|
IPC_STRUCT_END()
|
||||||
|
|
||||||
|
|
||||||
// Messages sent from the browser to the renderer.
|
// Messages sent from the browser to the renderer.
|
||||||
|
|
||||||
// Tells the render view to switch the CSS to print media type, renders every
|
// Tells the render view to switch the CSS to print media type, renders every
|
||||||
|
@ -235,14 +233,12 @@ IPC_MESSAGE_ROUTED3(PrintMsg_PrintPages,
|
||||||
base::string16 /* device name*/)
|
base::string16 /* device name*/)
|
||||||
|
|
||||||
// Tells the render view that printing is done so it can clean up.
|
// Tells the render view that printing is done so it can clean up.
|
||||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
|
IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, bool /* success */)
|
||||||
bool /* success */)
|
|
||||||
|
|
||||||
// Tells the render view to switch the CSS to print media type, renders every
|
// Tells the render view to switch the CSS to print media type, renders every
|
||||||
// requested pages for print preview using the given |settings|. This gets
|
// requested pages for print preview using the given |settings|. This gets
|
||||||
// called multiple times as the user updates settings.
|
// called multiple times as the user updates settings.
|
||||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
|
IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, base::DictionaryValue /* settings */)
|
||||||
base::DictionaryValue /* settings */)
|
|
||||||
|
|
||||||
// Messages sent from the renderer to the browser.
|
// Messages sent from the renderer to the browser.
|
||||||
|
|
||||||
|
@ -279,8 +275,8 @@ IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings,
|
||||||
|
|
||||||
// you can set the printer
|
// you can set the printer
|
||||||
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_InitSettingWithDeviceName,
|
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_InitSettingWithDeviceName,
|
||||||
base::string16, /* device name */
|
base::string16, /* device name */
|
||||||
PrintMsg_Print_Params /* default_settings */)
|
PrintMsg_Print_Params /* default_settings */)
|
||||||
|
|
||||||
// The renderer wants to update the current print settings with new
|
// The renderer wants to update the current print settings with new
|
||||||
// |job_settings|.
|
// |job_settings|.
|
||||||
|
@ -297,14 +293,13 @@ IPC_SYNC_MESSAGE_ROUTED2_2(PrintHostMsg_UpdatePrintSettings,
|
||||||
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
|
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
|
||||||
PrintHostMsg_ScriptedPrint_Params,
|
PrintHostMsg_ScriptedPrint_Params,
|
||||||
PrintMsg_PrintPages_Params
|
PrintMsg_PrintPages_Params
|
||||||
/* settings chosen by the user*/)
|
/* settings chosen by the user*/)
|
||||||
|
|
||||||
// This is sent when there are invalid printer settings.
|
// This is sent when there are invalid printer settings.
|
||||||
IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
||||||
|
|
||||||
// Tell the browser printing failed.
|
// Tell the browser printing failed.
|
||||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
|
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, int /* document cookie */)
|
||||||
int /* document cookie */)
|
|
||||||
|
|
||||||
// Sends back to the browser the complete rendered document (non-draft mode,
|
// Sends back to the browser the complete rendered document (non-draft mode,
|
||||||
// used for printing) that was requested by a PrintMsg_PrintPreview message.
|
// used for printing) that was requested by a PrintMsg_PrintPreview message.
|
||||||
|
|
|
@ -13,44 +13,38 @@
|
||||||
#define IPC_MESSAGE_START TtsMsgStart
|
#define IPC_MESSAGE_START TtsMsgStart
|
||||||
|
|
||||||
IPC_STRUCT_TRAITS_BEGIN(TtsUtteranceRequest)
|
IPC_STRUCT_TRAITS_BEGIN(TtsUtteranceRequest)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(id)
|
IPC_STRUCT_TRAITS_MEMBER(id)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(text)
|
IPC_STRUCT_TRAITS_MEMBER(text)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(voice)
|
IPC_STRUCT_TRAITS_MEMBER(voice)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(volume)
|
IPC_STRUCT_TRAITS_MEMBER(volume)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(rate)
|
IPC_STRUCT_TRAITS_MEMBER(rate)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(pitch)
|
IPC_STRUCT_TRAITS_MEMBER(pitch)
|
||||||
IPC_STRUCT_TRAITS_END()
|
IPC_STRUCT_TRAITS_END()
|
||||||
|
|
||||||
IPC_STRUCT_TRAITS_BEGIN(TtsVoice)
|
IPC_STRUCT_TRAITS_BEGIN(TtsVoice)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(voice_uri)
|
IPC_STRUCT_TRAITS_MEMBER(voice_uri)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(name)
|
IPC_STRUCT_TRAITS_MEMBER(name)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(local_service)
|
IPC_STRUCT_TRAITS_MEMBER(local_service)
|
||||||
IPC_STRUCT_TRAITS_MEMBER(is_default)
|
IPC_STRUCT_TRAITS_MEMBER(is_default)
|
||||||
IPC_STRUCT_TRAITS_END()
|
IPC_STRUCT_TRAITS_END()
|
||||||
|
|
||||||
// Renderer -> Browser messages.
|
// Renderer -> Browser messages.
|
||||||
|
|
||||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_InitializeVoiceList)
|
IPC_MESSAGE_CONTROL0(TtsHostMsg_InitializeVoiceList)
|
||||||
IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak,
|
IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak, TtsUtteranceRequest)
|
||||||
TtsUtteranceRequest)
|
|
||||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Pause)
|
IPC_MESSAGE_CONTROL0(TtsHostMsg_Pause)
|
||||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Resume)
|
IPC_MESSAGE_CONTROL0(TtsHostMsg_Resume)
|
||||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Cancel)
|
IPC_MESSAGE_CONTROL0(TtsHostMsg_Cancel)
|
||||||
|
|
||||||
// Browser -> Renderer messages.
|
// Browser -> Renderer messages.
|
||||||
|
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList,
|
IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList, std::vector<TtsVoice>)
|
||||||
std::vector<TtsVoice>)
|
IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking, int /* utterance id */)
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking,
|
IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking, int /* utterance id */)
|
||||||
int /* utterance id */)
|
IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking, int /* utterance id */)
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking,
|
IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking, int /* utterance id */)
|
||||||
int /* utterance id */)
|
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking,
|
|
||||||
int /* utterance id */)
|
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking,
|
|
||||||
int /* utterance id */)
|
|
||||||
IPC_MESSAGE_CONTROL2(TtsMsg_WordBoundary,
|
IPC_MESSAGE_CONTROL2(TtsMsg_WordBoundary,
|
||||||
int /* utterance id */,
|
int /* utterance id */,
|
||||||
int /* char index */)
|
int /* char index */)
|
||||||
|
@ -60,10 +54,8 @@ IPC_MESSAGE_CONTROL2(TtsMsg_SentenceBoundary,
|
||||||
IPC_MESSAGE_CONTROL2(TtsMsg_MarkerEvent,
|
IPC_MESSAGE_CONTROL2(TtsMsg_MarkerEvent,
|
||||||
int /* utterance id */,
|
int /* utterance id */,
|
||||||
int /* char index */)
|
int /* char index */)
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted,
|
IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted, int /* utterance id */)
|
||||||
int /* utterance id */)
|
IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled, int /* utterance id */)
|
||||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled,
|
|
||||||
int /* utterance id */)
|
|
||||||
IPC_MESSAGE_CONTROL2(TtsMsg_SpeakingErrorOccurred,
|
IPC_MESSAGE_CONTROL2(TtsMsg_SpeakingErrorOccurred,
|
||||||
int /* utterance id */,
|
int /* utterance id */,
|
||||||
std::string /* error message */)
|
std::string /* error message */)
|
|
@ -5,8 +5,8 @@
|
||||||
#ifndef CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
#ifndef CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
||||||
#define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
#define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
||||||
|
|
||||||
#include "base/macros.h"
|
|
||||||
#include "base/files/file_path.h"
|
#include "base/files/file_path.h"
|
||||||
|
#include "base/macros.h"
|
||||||
|
|
||||||
extern const char kWidevineCdmPluginExtension[];
|
extern const char kWidevineCdmPluginExtension[];
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace ppapi {
|
||||||
namespace proxy {
|
namespace proxy {
|
||||||
struct SerializedFontDescription;
|
struct SerializedFontDescription;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
|
class PepperFlashFontFileHost : public ppapi::host::ResourceHost {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
namespace content {
|
namespace content {
|
||||||
class RendererPpapiHost;
|
class RendererPpapiHost;
|
||||||
struct MenuItem;
|
struct MenuItem;
|
||||||
}
|
} // namespace content
|
||||||
|
|
||||||
namespace ppapi {
|
namespace ppapi {
|
||||||
namespace proxy {
|
namespace proxy {
|
||||||
class SerializedFlashMenu;
|
class SerializedFlashMenu;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
class PepperFlashMenuHost : public ppapi::host::ResourceHost,
|
class PepperFlashMenuHost : public ppapi::host::ResourceHost,
|
||||||
public content::ContextMenuClient {
|
public content::ContextMenuClient {
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace ppapi {
|
||||||
namespace proxy {
|
namespace proxy {
|
||||||
struct PPBFlash_DrawGlyphs_Params;
|
struct PPBFlash_DrawGlyphs_Params;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
namespace content {
|
namespace content {
|
||||||
class RendererPpapiHost;
|
class RendererPpapiHost;
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace ppapi {
|
||||||
namespace proxy {
|
namespace proxy {
|
||||||
class SerializedHandle;
|
class SerializedHandle;
|
||||||
}
|
}
|
||||||
}
|
} // namespace ppapi
|
||||||
|
|
||||||
// Implements the backend for shared memory messages from a plugin process.
|
// Implements the backend for shared memory messages from a plugin process.
|
||||||
class PepperSharedMemoryMessageFilter
|
class PepperSharedMemoryMessageFilter
|
||||||
|
|
|
@ -106,7 +106,6 @@ class PrintWebViewHelper
|
||||||
#endif // !DISABLE_BASIC_PRINTING
|
#endif // !DISABLE_BASIC_PRINTING
|
||||||
void OnPrintPreview(const base::DictionaryValue& settings);
|
void OnPrintPreview(const base::DictionaryValue& settings);
|
||||||
|
|
||||||
|
|
||||||
// Get |page_size| and |content_area| information from
|
// Get |page_size| and |content_area| information from
|
||||||
// |page_layout_in_points|.
|
// |page_layout_in_points|.
|
||||||
void GetPageSizeAndContentAreaFromPageLayout(
|
void GetPageSizeAndContentAreaFromPageLayout(
|
||||||
|
@ -131,7 +130,6 @@ class PrintWebViewHelper
|
||||||
bool RenderPreviewPage(int page_number,
|
bool RenderPreviewPage(int page_number,
|
||||||
const PrintMsg_Print_Params& print_params);
|
const PrintMsg_Print_Params& print_params);
|
||||||
|
|
||||||
|
|
||||||
// Initialize the print preview document.
|
// Initialize the print preview document.
|
||||||
bool CreatePreviewDocument();
|
bool CreatePreviewDocument();
|
||||||
|
|
||||||
|
@ -154,10 +152,11 @@ class PrintWebViewHelper
|
||||||
const base::string16& device_name = base::string16());
|
const base::string16& device_name = base::string16());
|
||||||
|
|
||||||
// Calculate number of pages in source document.
|
// Calculate number of pages in source document.
|
||||||
bool CalculateNumberOfPages(blink::WebLocalFrame* frame,
|
bool CalculateNumberOfPages(
|
||||||
const blink::WebNode& node,
|
blink::WebLocalFrame* frame,
|
||||||
int* number_of_pages,
|
const blink::WebNode& node,
|
||||||
const base::string16& device_name = base::string16());
|
int* number_of_pages,
|
||||||
|
const base::string16& device_name = base::string16());
|
||||||
|
|
||||||
// Update the current print settings with new |passed_job_settings|.
|
// Update the current print settings with new |passed_job_settings|.
|
||||||
// |passed_job_settings| dictionary contains print job details such as printer
|
// |passed_job_settings| dictionary contains print job details such as printer
|
||||||
|
@ -166,7 +165,6 @@ class PrintWebViewHelper
|
||||||
const blink::WebNode& node,
|
const blink::WebNode& node,
|
||||||
const base::DictionaryValue& passed_job_settings);
|
const base::DictionaryValue& passed_job_settings);
|
||||||
|
|
||||||
|
|
||||||
// Get final print settings from the user.
|
// Get final print settings from the user.
|
||||||
// Return false if the user cancels or on error.
|
// Return false if the user cancels or on error.
|
||||||
bool GetPrintSettingsFromUser(blink::WebLocalFrame* frame,
|
bool GetPrintSettingsFromUser(blink::WebLocalFrame* frame,
|
||||||
|
@ -373,7 +371,6 @@ class PrintWebViewHelper
|
||||||
State state_;
|
State state_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
bool print_node_in_progress_;
|
bool print_node_in_progress_;
|
||||||
bool is_loading_;
|
bool is_loading_;
|
||||||
bool is_scripted_preview_delayed_;
|
bool is_scripted_preview_delayed_;
|
||||||
|
|
|
@ -25,9 +25,8 @@ struct TtsVoice;
|
||||||
// itself when deleted. There can be multiple TtsDispatchers alive at once,
|
// itself when deleted. There can be multiple TtsDispatchers alive at once,
|
||||||
// so each one routes IPC messages to its WebSpeechSynthesizerClient only if
|
// so each one routes IPC messages to its WebSpeechSynthesizerClient only if
|
||||||
// the utterance id (which is globally unique) matches.
|
// the utterance id (which is globally unique) matches.
|
||||||
class TtsDispatcher
|
class TtsDispatcher : public blink::WebSpeechSynthesizer,
|
||||||
: public blink::WebSpeechSynthesizer,
|
public content::RenderThreadObserver {
|
||||||
public content::RenderThreadObserver {
|
|
||||||
public:
|
public:
|
||||||
explicit TtsDispatcher(blink::WebSpeechSynthesizerClient* client);
|
explicit TtsDispatcher(blink::WebSpeechSynthesizerClient* client);
|
||||||
virtual ~TtsDispatcher();
|
virtual ~TtsDispatcher();
|
||||||
|
@ -38,8 +37,8 @@ class TtsDispatcher
|
||||||
|
|
||||||
// blink::WebSpeechSynthesizer implementation.
|
// blink::WebSpeechSynthesizer implementation.
|
||||||
virtual void UpdateVoiceList() override;
|
virtual void UpdateVoiceList() override;
|
||||||
virtual void Speak(const blink::WebSpeechSynthesisUtterance& utterance)
|
virtual void Speak(
|
||||||
override;
|
const blink::WebSpeechSynthesisUtterance& utterance) override;
|
||||||
virtual void Pause() override;
|
virtual void Pause() override;
|
||||||
virtual void Resume() override;
|
virtual void Resume() override;
|
||||||
virtual void Cancel() override;
|
virtual void Cancel() override;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
namespace content {
|
namespace content {
|
||||||
class RenderFrame;
|
class RenderFrame;
|
||||||
class RendererPpapiHost;
|
class RendererPpapiHost;
|
||||||
}
|
} // namespace content
|
||||||
|
|
||||||
namespace pdf {
|
namespace pdf {
|
||||||
|
|
||||||
|
|
|
@ -47,13 +47,13 @@ class URLPattern {
|
||||||
public:
|
public:
|
||||||
// A collection of scheme bitmasks for use with valid_schemes.
|
// A collection of scheme bitmasks for use with valid_schemes.
|
||||||
enum SchemeMasks {
|
enum SchemeMasks {
|
||||||
SCHEME_NONE = 0,
|
SCHEME_NONE = 0,
|
||||||
SCHEME_HTTP = 1 << 0,
|
SCHEME_HTTP = 1 << 0,
|
||||||
SCHEME_HTTPS = 1 << 1,
|
SCHEME_HTTPS = 1 << 1,
|
||||||
SCHEME_FILE = 1 << 2,
|
SCHEME_FILE = 1 << 2,
|
||||||
SCHEME_FTP = 1 << 3,
|
SCHEME_FTP = 1 << 3,
|
||||||
SCHEME_CHROMEUI = 1 << 4,
|
SCHEME_CHROMEUI = 1 << 4,
|
||||||
SCHEME_EXTENSION = 1 << 5,
|
SCHEME_EXTENSION = 1 << 5,
|
||||||
SCHEME_FILESYSTEM = 1 << 6,
|
SCHEME_FILESYSTEM = 1 << 6,
|
||||||
|
|
||||||
// IMPORTANT!
|
// IMPORTANT!
|
||||||
|
@ -62,7 +62,7 @@ class URLPattern {
|
||||||
// implications, third-party extensions should usually not be able to get
|
// implications, third-party extensions should usually not be able to get
|
||||||
// access to URL patterns initialized this way. If there is a reason
|
// access to URL patterns initialized this way. If there is a reason
|
||||||
// for violating this general rule, document why this it safe.
|
// for violating this general rule, document why this it safe.
|
||||||
SCHEME_ALL = -1,
|
SCHEME_ALL = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Error codes returned from Parse().
|
// Error codes returned from Parse().
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// This is generated file. Do not modify directly.
|
// This is generated file. Do not modify directly.
|
||||||
// Path to the code generator: tools/generate_library_loader/generate_library_loader.py .
|
// Path to the code generator:
|
||||||
|
// tools/generate_library_loader/generate_library_loader.py .
|
||||||
|
|
||||||
#ifndef LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
|
#ifndef LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
|
||||||
#define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
|
#define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H
|
||||||
|
@ -7,7 +8,6 @@
|
||||||
#include "third_party/speech-dispatcher/libspeechd.h"
|
#include "third_party/speech-dispatcher/libspeechd.h"
|
||||||
#define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H_DLOPEN
|
#define LIBRARY_LOADER_OUT_RELEASE_GEN_LIBRARY_LOADERS_LIBSPEECHD_H_DLOPEN
|
||||||
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class LibSpeechdLoader {
|
class LibSpeechdLoader {
|
||||||
|
@ -35,7 +35,6 @@ class LibSpeechdLoader {
|
||||||
decltype(&::spd_set_output_module) spd_set_output_module;
|
decltype(&::spd_set_output_module) spd_set_output_module;
|
||||||
decltype(&::spd_set_language) spd_set_language;
|
decltype(&::spd_set_language) spd_set_language;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void CleanUp(bool unload);
|
void CleanUp(bool unload);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue