#include "chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
ContextMenuNotificationObserver::ContextMenuNotificationObserver(
int command_to_execute)
: … { … }
ContextMenuNotificationObserver::ContextMenuNotificationObserver(
int command_to_execute,
int event_flags,
MenuShownCallback callback)
: … { … }
ContextMenuNotificationObserver::~ContextMenuNotificationObserver() = default;
void ContextMenuNotificationObserver::MenuShown(
RenderViewContextMenu* context_menu) { … }
void ContextMenuNotificationObserver::ExecuteCommand(
RenderViewContextMenu* context_menu) { … }
ContextMenuWaiter::ContextMenuWaiter() { … }
ContextMenuWaiter::ContextMenuWaiter(int command_to_execute)
: … { … }
ContextMenuWaiter::ContextMenuWaiter(int command_to_execute,
base::OnceClosure before_execute)
: … { … }
ContextMenuWaiter::~ContextMenuWaiter() = default;
void ContextMenuWaiter::MenuShown(RenderViewContextMenu* context_menu) { … }
void ContextMenuWaiter::WaitForMenuOpenAndClose() { … }
content::ContextMenuParams& ContextMenuWaiter::params() { … }
const std::vector<int>& ContextMenuWaiter::GetCapturedCommandIds() const { … }
const std::vector<int>& ContextMenuWaiter::GetCapturedEnabledCommandIds()
const { … }
void ContextMenuWaiter::Cancel(RenderViewContextMenu* context_menu) { … }